Run frontend with Nitro production server
This commit is contained in:
@@ -36,6 +36,8 @@ done
|
||||
|
||||
npx prisma db push
|
||||
|
||||
# Run Nuxt in production mode to avoid dev-server chunk timeouts.
|
||||
# Run Nuxt in production mode (Nitro server), no dev/preview runtime.
|
||||
npm run build
|
||||
exec npm run preview -- --host 0.0.0.0 --port 3000
|
||||
export NITRO_HOST=0.0.0.0
|
||||
export NITRO_PORT=3000
|
||||
exec node .output/server/index.mjs
|
||||
|
||||
Reference in New Issue
Block a user