👷 build: fix docker build (#11768)

* fix build

* fix build
This commit is contained in:
Arvin Xu
2026-01-24 15:24:05 +08:00
committed by GitHub
parent 7ae5f687f7
commit a43415bd60
2 changed files with 3 additions and 1 deletions

View File

@@ -47,7 +47,8 @@ ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
ENV APP_URL="http://app.com" \
DATABASE_DRIVER="node" \
DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" \
KEY_VAULTS_SECRET="use-for-build"
KEY_VAULTS_SECRET="use-for-build" \
AUTH_SECRET="use-for-build"
# Sentry
ENV NEXT_PUBLIC_SENTRY_DSN="${NEXT_PUBLIC_SENTRY_DSN}" \

View File

@@ -51,6 +51,7 @@ const checkRequiredEnvVars = () => {
console.error(` 📖 Documentation: ${docUrl}\n`);
}
console.error('Please configure these environment variables and redeploy.');
console.error('\n💡 TIP: If you previously used NEXT_AUTH_SECRET, simply rename it to AUTH_SECRET.');
console.error('═'.repeat(70) + '\n');
process.exit(1);
}