Merge branch 'feature/vik-114-runtime-deploy-fix' into develop
Some checks failed
Deploy Holiday Property Booking / deploy (push) Successful in 4m57s
Playwright Holiday Property Booking / playwright (push) Failing after 2m2s
Test & Build Holiday Property Booking / test-build (push) Successful in 1m21s

This commit is contained in:
2026-05-31 01:53:50 +00:00
3 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ The deployment model is expected to follow the shared dev, QA, and production br
- `NEXT_PUBLIC_SITE_URL` should match the deployed environment.
- `DATABASE_URL` should target the environment-specific PostgreSQL instance.
- Stripe and email provider secrets live in environment variables.
- The production container applies Prisma migrations and seeds the property inventory before the Next.js server starts so checkout has the required `Property` records.
## Port Mapping

View File

@@ -17,4 +17,4 @@ RUN npm run build
EXPOSE 3000
CMD ["node", ".next/standalone/server.js"]
CMD ["sh", "-c", "npm run prisma:migrate:deploy && npm run prisma:seed && node .next/standalone/server.js"]

View File

@@ -10,6 +10,7 @@
"test": "vitest run",
"test:e2e": "playwright test",
"prisma:generate": "prisma generate",
"prisma:migrate:deploy": "prisma migrate deploy",
"prisma:migrate:dev": "prisma migrate dev",
"prisma:seed": "tsx prisma/seed.ts"
},