From 10b804a629ff15f802b32a5cbcb139a0832488e8 Mon Sep 17 00:00:00 2001 From: nicosammito Date: Mon, 10 Aug 2026 13:06:17 +0200 Subject: [PATCH] feat: configure Next.js for standalone output and update start script --- next.config.ts | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index b6474de6..a08161b5 100644 --- a/next.config.ts +++ b/next.config.ts @@ -20,6 +20,7 @@ const cspHeader = ` ` const nextConfig: NextConfig = { + output: "standalone", async headers() { return [ { diff --git a/package.json b/package.json index 909a97eb..50c1d780 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "dev:cloud": "cross-env EDITION=cloud npm run dev", "prebuild": "node edition.mjs", "build": "next build", - "start": "next start", + "postbuild": "cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/", + "start": "node .next/standalone/server.js", "lint": "eslint" }, "dependencies": {