Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ‘· build: fix docker build (#11768)

Arvin Xua43415bd605d
diff --git a/Dockerfile b/Dockerfile
index ef05aa123f1..82cd0a5556c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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}" \
diff --git a/scripts/prebuild.mts b/scripts/prebuild.mts
index 6517b6c73fa..d7e078d0902 100644
--- a/scripts/prebuild.mts
+++ b/scripts/prebuild.mts
@@ -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);
}