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",

View File

@@ -5,7 +5,7 @@
"scripts": {
"generate": "turbo run generate",
"build": "turbo run build",
"build:docker": "rm -rf ./out ./docker && mkdir -p ./docker && turbo prune @zitadel/login --docker && cd ./docker && cp -r ../out/json/* . && pnpm install --frozen-lockfile && cp -r ../out/full/* . && turbo run build && cd ..",
"build:docker": "rm -rf ./out ./docker && mkdir -p ./docker && turbo prune @zitadel/login --docker && cd ./docker && cp -r ../out/json/* . && pnpm install --frozen-lockfile && cp -r ../out/full/* . && turbo run build:standalone && cd ..",
"build:packages": "turbo run build --filter=./packages/*",
"build:apps": "turbo run build --filter=./apps/*",
"test": "turbo run test",

View File

@@ -1,15 +1,13 @@
{
"extends": [
"//"
],
"extends": ["//"],
"tasks": {
"build": {
"outputs": [
"dist/**"
],
"dependsOn": [
"@zitadel/proto#generate"
]
"outputs": ["dist/**"],
"dependsOn": ["@zitadel/proto#generate"]
},
"build:standalone": {
"outputs": ["dist/**"],
"dependsOn": ["@zitadel/proto#generate"]
}
}
}

View File

@@ -25,6 +25,7 @@
"cache": true
},
"build": {},
"build:standalone": {},
"test": {},
"start": {},
"start:built": {},