mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 00:17:43 +00:00
build:standalone for docker
This commit is contained in:
@@ -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,
|
||||
|
@@ -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",
|
||||
|
@@ -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",
|
||||
|
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@
|
||||
"cache": true
|
||||
},
|
||||
"build": {},
|
||||
"build:standalone": {},
|
||||
"test": {},
|
||||
"start": {},
|
||||
"start:built": {},
|
||||
|
Reference in New Issue
Block a user