mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-03 06:09:36 +02:00
Fix Kan build by installing devDependencies during pnpm install
Sourcing .env sets NODE_ENV=production, which caused pnpm to skip devDependencies including @types/nodemailer. Add --prod=false to pnpm install in kan-install.sh and ct/kan.sh so @kan/email compiles during the monorepo build. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,7 +50,7 @@ function update_script() {
|
||||
cd /opt/kan
|
||||
set -a && source /opt/kan/.env && set +a
|
||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true
|
||||
$STD pnpm install --ignore-scripts
|
||||
$STD pnpm install --ignore-scripts --prod=false
|
||||
export CI=true
|
||||
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
|
||||
$STD pnpm build --filter=@kan/web
|
||||
|
||||
@@ -45,7 +45,7 @@ msg_info "Building Application"
|
||||
cd /opt/kan
|
||||
set -a && source /opt/kan/.env && set +a
|
||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true NEXT_PUBLIC_BASE_URL BETTER_AUTH_TRUSTED_ORIGINS NEXT_PUBLIC_ALLOW_CREDENTIALS BETTER_AUTH_SECRET
|
||||
$STD pnpm install --ignore-scripts
|
||||
$STD pnpm install --ignore-scripts --prod=false
|
||||
export CI=true
|
||||
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
|
||||
$STD pnpm build --filter=@kan/web
|
||||
|
||||
Reference in New Issue
Block a user