fix(frontend): say the database is missing, not Supabase
Independent Staging Quality Gate / validate (push) Successful in 9m34s
Independent Staging Quality Gate / publish (push) Successful in 7m21s

Self-hosted PostgreSQL is the runtime. A missing APP_DATABASE_URL
must not tell users the retired hosted service is unconfigured.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-29 09:44:53 +08:00
co-authored by Cursor
parent 3198fb6b2b
commit 31b54aa71d
22 changed files with 90 additions and 28 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ function authMessage(caught: unknown) {
message.includes("environment") ||
message.includes("URL")
)
return "Supabase 尚未配置";
return "数据库尚未配置";
if (lower.includes("expired") || lower.includes("invalid"))
return "验证码错误或已过期,请重新获取";
if (lower.includes("rate limit")) return "发送过于频繁,请稍后再试";