fix(e2e): healthcheck under /api

This commit is contained in:
Nicolas Meienberger 2026-02-11 21:36:44 +01:00
parent 5c32ab0ee7
commit daeea1980d
3 changed files with 2 additions and 5 deletions

View file

@ -57,7 +57,7 @@ jobs:
- name: Wait for zerobyte to be ready - name: Wait for zerobyte to be ready
run: | run: |
timeout 30s bash -c 'until curl -f http://localhost:4096/healthcheck; do echo "Waiting for server..." && sleep 2; done' timeout 30s bash -c 'until curl -f http://localhost:4096/api/healthcheck; do echo "Waiting for server..." && sleep 2; done'
- name: Print docker logs if failed to start - name: Print docker logs if failed to start
if: failure() if: failure()

View file

@ -70,7 +70,7 @@ export const createApp = () => {
); );
app app
.get("healthcheck", (c) => c.json({ status: "ok" })) .get("/api/healthcheck", (c) => c.json({ status: "ok" }))
.route("/api/v1/auth", authController) .route("/api/v1/auth", authController)
.route("/api/v1/volumes", volumeController) .route("/api/v1/volumes", volumeController)
.route("/api/v1/repositories", repositoriesController) .route("/api/v1/repositories", repositoriesController)

View file

@ -6,9 +6,6 @@ import tsconfigPaths from "vite-tsconfig-paths";
import viteReact from "@vitejs/plugin-react"; import viteReact from "@vitejs/plugin-react";
export default defineConfig({ export default defineConfig({
define: {
"process.env.NODE_ENV": "production",
},
plugins: [ plugins: [
tsconfigPaths(), tsconfigPaths(),
tanstackStart({ tanstackStart({