deploy
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Failing after 4m27s

This commit is contained in:
2026-01-28 23:46:51 +01:00
parent 3f0858a1ba
commit 9ee09bbe4b
3 changed files with 51 additions and 8 deletions

View File

@@ -37,13 +37,6 @@ RUN npx tsx scripts/validate-env.ts
RUN npm run build
# Smoke test during build to catch runtime errors early
# We start the app in the background, wait for it to be ready, and run the smoke test
RUN (node .next/standalone/server.js &) && \
npx wait-on -t 30000 http://localhost:3000/health && \
npx tsx scripts/smoke-test.ts http://localhost:3000/health && \
pkill -f "node .next/standalone/server.js"
# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app