Files
AiTool/frontend/lib/portal-config.ts
2026-03-15 16:38:59 +08:00

23 lines
782 B
TypeScript

/**
* 快捷门户地址配置
* 通过环境变量 NEXT_PUBLIC_* 覆盖,未设置时使用默认值
*/
const DEFAULTS = {
/** 国家税务总局门户 */
TAX_GATEWAY_URL: "https://www.chinatax.gov.cn",
/** 电子税务局(如上海电子税务局) */
TAX_PORTAL_URL: "https://etax.shanghai.chinatax.gov.cn:8443/",
/** 公积金管理中心 */
HOUSING_FUND_PORTAL_URL: "https://www.shzfgjj.cn/static/unit/web/",
} as const;
export const portalConfig = {
taxGatewayUrl:
process.env.NEXT_PUBLIC_TAX_GATEWAY_URL ?? DEFAULTS.TAX_GATEWAY_URL,
taxPortalUrl:
process.env.NEXT_PUBLIC_TAX_PORTAL_URL ?? DEFAULTS.TAX_PORTAL_URL,
housingFundPortalUrl:
process.env.NEXT_PUBLIC_HOUSING_FUND_PORTAL_URL ??
DEFAULTS.HOUSING_FUND_PORTAL_URL,
} as const;