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 2026-08-02 07:12:54 +08:00
parent fcf3413634
commit 225d5b015e
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
3 changed files with 250 additions and 0 deletions

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;