refactor(website): 域名/邮箱/渠道收口到 src/config/site.ts 单一真相源
新增 SITE 配置(url/email/telegram/line/store),Footer、Pricing、astro.config (canonical 域名)均改为引用它;改联系方式/域名只动一处。 astro.config.mjs 直接 import 该 TS(Astro 配置加载支持)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* site.ts — 站点级配置「单一真相源」:域名、联系方式、对外渠道。
|
||||
*
|
||||
* 改这一处即可:组件(Footer / Pricing)与 astro.config 的 canonical 域名都从这里读。
|
||||
* 此处只承载「事实值」(URL / 邮箱 / handle);可翻译的展示文案仍走 i18n/strings.ts。
|
||||
*/
|
||||
export const SITE = {
|
||||
/** canonical 主域名。镜像部署可用 SITE_URL 环境变量覆盖(见 astro.config.mjs)。 */
|
||||
url: 'https://pangolin.yanmeiai.com',
|
||||
|
||||
/** 联系邮箱。Cloudflare Email Routing 转发到个人 Gmail。 */
|
||||
email: 'pangolin@yanmeiai.com',
|
||||
|
||||
/** Telegram 公开频道(群为私有,公开页不放)。 */
|
||||
telegram: { handle: '@pangolin_app', url: 'https://t.me/pangolin_app' },
|
||||
|
||||
/** LINE 官方账号 —— 待确认(#24)。 */
|
||||
line: { handle: '@pangolinvpn' },
|
||||
|
||||
/** 自助发卡商店 —— 占位待定(#24)。 */
|
||||
store: { label: 'shop.pangolin.vpn' },
|
||||
} as const;
|
||||
Reference in New Issue
Block a user