feat(legal): serve Terms of Service and Privacy Policy pages

Add bilingual (zh/en) /terms and /privacy pages served by the Worker for
configuring the Discord application's Terms of Service and Privacy Policy
URLs. Contact line is configurable via optional LEGAL_CONTACT env var.
This commit is contained in:
RhenCloud committed 2026-08-02 07:12:54 +08:00
1 parent fcf3413634
commit 225d5b015e
3 files changed
+250

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ export interface Env {
BASE_URL?: string;
ADMIN_USER_IDS?: string;
DISCORD_GATEWAY_ENABLED?: string;
LEGAL_CONTACT?: string;
ASSETS?: Fetcher;
KV: KVNamespace;
DISCORD_GATEWAY: DurableObjectNamespace;