mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 08:23:16 +00:00
build:standalone for docker
This commit is contained in:
@@ -54,7 +54,7 @@ if (process.env.ZITADEL_API_URL) {
|
|||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
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`.
|
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
|
||||||
experimental: {
|
experimental: {
|
||||||
dynamicIO: true,
|
dynamicIO: true,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
"lint:fix": "prettier --write .",
|
"lint:fix": "prettier --write .",
|
||||||
"lint-staged": "lint-staged",
|
"lint-staged": "lint-staged",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
"build:standalone": "NEXT_OUTPUT_MODE=standalone pnpm build",
|
||||||
"prestart": "pnpm build",
|
"prestart": "pnpm build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"start:built": "next start",
|
"start:built": "next start",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"generate": "turbo run generate",
|
"generate": "turbo run generate",
|
||||||
"build": "turbo run build",
|
"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:packages": "turbo run build --filter=./packages/*",
|
||||||
"build:apps": "turbo run build --filter=./apps/*",
|
"build:apps": "turbo run build --filter=./apps/*",
|
||||||
"test": "turbo run test",
|
"test": "turbo run test",
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["//"],
|
||||||
"//"
|
|
||||||
],
|
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"build": {
|
"build": {
|
||||||
"outputs": [
|
"outputs": ["dist/**"],
|
||||||
"dist/**"
|
"dependsOn": ["@zitadel/proto#generate"]
|
||||||
],
|
},
|
||||||
"dependsOn": [
|
"build:standalone": {
|
||||||
"@zitadel/proto#generate"
|
"outputs": ["dist/**"],
|
||||||
]
|
"dependsOn": ["@zitadel/proto#generate"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
"cache": true
|
"cache": true
|
||||||
},
|
},
|
||||||
"build": {},
|
"build": {},
|
||||||
|
"build:standalone": {},
|
||||||
"test": {},
|
"test": {},
|
||||||
"start": {},
|
"start": {},
|
||||||
"start:built": {},
|
"start:built": {},
|
||||||
|
|||||||
Reference in New Issue
Block a user