This commit is contained in:
eric
2026-06-07 01:17:46 -05:00
parent 283d65d1d1
commit cd885f5fcd
110 changed files with 17876 additions and 11 deletions

17
app/digital/lib/env.ts Normal file
View File

@@ -0,0 +1,17 @@
/**
* 环境配置:区分本地调试与生产部署
* 域名更换:设置 ROOT_DOMAIN(如 nomadro.com)可推导默认值
*/
import { DEFAULT_PAYMENT_API_URL, DEFAULT_SITE_URL } from "@/config/digital/domain.config";
/** 支付 API 地址(payjsapi) */
export const PAYMENT_API_URL =
process.env.PAYMENT_API_URL || DEFAULT_PAYMENT_API_URL;
/** 站点根地址(用于 return_url 等回跳,生产需配置) */
export const SITE_URL =
process.env.NEXT_PUBLIC_SITE_URL || DEFAULT_SITE_URL;
/** 是否为本地开发 */
export const IS_DEV = process.env.NODE_ENV === "development";