Files
usa/src/config.ts
2026-03-03 17:27:55 +08:00

12 lines
471 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 应用配置:敏感项仅从环境变量读取,勿在源码中写 token
* 构建时 Vite 会将 VITE_* 内联到前端token 只应放在 .env且 .env 不提交)
*/
export const config = {
/** Mapbox 地图令牌(仅从 VITE_MAPBOX_ACCESS_TOKEN 读取,勿硬编码) */
mapboxAccessToken: import.meta.env.VITE_MAPBOX_ACCESS_TOKEN ?? '',
/** 是否显示滚动情报 */
showNewsTicker: import.meta.env.VITE_SHOW_NEWS_TICKER === 'true',
}