fix(deploy): throttle build workers to 1 to prevent OOM and fix entrypoint
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 18s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 7m32s
Build & Deploy / 🧪 QA (push) Successful in 1m49s
Build & Deploy / 🏗️ Build (push) Successful in 36m51s
Build & Deploy / 🚀 Deploy (push) Successful in 1m22s
Build & Deploy / 🔔 Notify (push) Successful in 4s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 18s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 7m32s
Build & Deploy / 🧪 QA (push) Successful in 1m49s
Build & Deploy / 🏗️ Build (push) Successful in 36m51s
Build & Deploy / 🚀 Deploy (push) Successful in 1m22s
Build & Deploy / 🔔 Notify (push) Successful in 4s
This commit is contained in:
@@ -30,6 +30,7 @@ ENV S3_PREFIX=$S3_PREFIX
|
|||||||
ENV DATABASE_URI=$DATABASE_URI
|
ENV DATABASE_URI=$DATABASE_URI
|
||||||
ENV PAYLOAD_SECRET=$PAYLOAD_SECRET
|
ENV PAYLOAD_SECRET=$PAYLOAD_SECRET
|
||||||
ENV SKIP_RUNTIME_ENV_VALIDATION=true
|
ENV SKIP_RUNTIME_ENV_VALIDATION=true
|
||||||
|
ENV NEXT_BUILD_WORKERS=1
|
||||||
ENV CI=true
|
ENV CI=true
|
||||||
|
|
||||||
# Copy manifest files specifically for better layer caching
|
# Copy manifest files specifically for better layer caching
|
||||||
@@ -84,4 +85,4 @@ USER nextjs
|
|||||||
# Start from the app directory to ensure references solve correctly
|
# Start from the app directory to ensure references solve correctly
|
||||||
# In Standalone mode, Next.js expects node_modules and public relative to the server.js
|
# In Standalone mode, Next.js expects node_modules and public relative to the server.js
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["node", "apps/web/server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user