From daeea1980d17966b910657f2f8095ee40119f593 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 11 Feb 2026 21:36:44 +0100 Subject: [PATCH] fix(e2e): healthcheck under /api --- .github/workflows/e2e.yml | 2 +- app/server/app.ts | 2 +- vite.config.ts | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 35d83aa2..b2fbb804 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -57,7 +57,7 @@ jobs: - name: Wait for zerobyte to be ready 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 if: failure() diff --git a/app/server/app.ts b/app/server/app.ts index e97ec007..0bbce1ec 100644 --- a/app/server/app.ts +++ b/app/server/app.ts @@ -70,7 +70,7 @@ export const createApp = () => { ); app - .get("healthcheck", (c) => c.json({ status: "ok" })) + .get("/api/healthcheck", (c) => c.json({ status: "ok" })) .route("/api/v1/auth", authController) .route("/api/v1/volumes", volumeController) .route("/api/v1/repositories", repositoriesController) diff --git a/vite.config.ts b/vite.config.ts index 8e618d54..6abc6502 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,9 +6,6 @@ import tsconfigPaths from "vite-tsconfig-paths"; import viteReact from "@vitejs/plugin-react"; export default defineConfig({ - define: { - "process.env.NODE_ENV": "production", - }, plugins: [ tsconfigPaths(), tanstackStart({