fix(e2e): healthcheck under /api
This commit is contained in:
parent
5c32ab0ee7
commit
daeea1980d
3 changed files with 2 additions and 5 deletions
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue