feat: 增加本地安装页调试模式

This commit is contained in:
Nixevol
2026-07-07 03:00:59 +08:00
parent beb458d28d
commit eec4aaebf4
9 changed files with 57 additions and 10 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export function hasRuntimeConfig(): boolean {
export function isInstallMode(): boolean {
preloadRuntimeEnv();
if (process.env.ARTVERIS_INSTALL_MODE === '1') return true;
if (process.env.ARTVERIS_INSTALL_MODE === '1') return !hasRuntimeConfig();
if (process.env.ARTVERIS_INSTALL_MODE === '0') return false;
if (process.env.DATABASE_URL) return false;
return !hasRuntimeConfig();