Build a standalone server bundle for SSR deploy
Add output: 'standalone' so `next build` emits .next/standalone, which the smbCloud nextjs-ssr flow rsyncs and runs under PM2. The legacy git-push build hook is deprecated for Next.js apps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Seto Elkahfi committed
Jun 21, 2026 at 15:09 UTC
c13ab5d972810b07b911c6d64660aa9a528baa44
1 file changed
+4
-1
next.config.mjs
+4
-1
@@ -7,5 +7,8 @@ const withNextra = nextra({
7
})
8
9
export default withNextra({
10
- reactStrictMode: true
10
+ reactStrictMode: true,
11
+ // SSR deploy: produce a self-contained server bundle in .next/standalone
12
+ // that smbCloud rsyncs and runs under PM2 (nextjs-ssr flow).
13
+ output: 'standalone'
14
})