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": {