Require Next.js standalone output in website AI prompt and deploy.
Document mandatory output: "standalone" for shared-VM RAM, and align websites-agent deploy to prefer .next/standalone/server.js. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
b1dcecc468
commit
4823cf97f6
@@ -23,3 +23,15 @@
|
||||
# deploy.sh checks out origin/HEAD (falls back to main, then master).
|
||||
# If the site builds with Next `output: 'standalone'`, deploy copies static/public
|
||||
# into `.next/standalone`, points PM2 at `server.js`, and removes full `node_modules`.
|
||||
# Vinext apps (`vinext` in package.json / `vinext start`) have no `.next` production
|
||||
# build — deploy runs `vinext start` against `dist/` instead of `next start`.
|
||||
# A build that produces neither standalone, `.next/BUILD_ID`, nor Vinext `dist/`
|
||||
# is marked failed (avoids nginx 502 from a crash-looping `next start`).
|
||||
#
|
||||
# REQUIRED for all Meshkee Next storefronts: next.config must include
|
||||
# output: "standalone"
|
||||
# Without it, PM2 runs `next start` + full node_modules (~150–500MB RSS each) and
|
||||
# the shared websites VM OOMs. Target ~80–120MB RSS per site via standalone.
|
||||
# Paste for website-building agents:
|
||||
# "Always set output: 'standalone' in next.config. Deploy expects .next/standalone
|
||||
# and deletes node_modules. Never ship next start / full node_modules runtime."
|
||||
|
||||
Reference in New Issue
Block a user