build:standalone for docker

This commit is contained in:
Max Peintner
2025-02-12 13:51:43 +01:00
parent b91785b09e
commit 6c56efeea7
5 changed files with 11 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ if (process.env.ZITADEL_API_URL) {
const nextConfig = {
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
output: "standalone",
output: process.env.NEXT_OUTPUT_MODE || undefined,
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
experimental: {
dynamicIO: true,

View File

@@ -23,6 +23,7 @@
"lint:fix": "prettier --write .",
"lint-staged": "lint-staged",
"build": "next build",
"build:standalone": "NEXT_OUTPUT_MODE=standalone pnpm build",
"prestart": "pnpm build",
"start": "next start",
"start:built": "next start",