配置前端三环境变量
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-06 11:59:54 +08:00
parent 4a6a7f9c29
commit 19d048dd66
14 changed files with 173 additions and 82 deletions

View File

@@ -3,8 +3,7 @@
* 用于 POI 搜索、地址解析、路线规划等
*/
// 优先从环境变量读取 API Key,回退到硬编码值(仅用于开发环境)
const TENCENT_MAP_KEY = import.meta.env.VITE_TENCENT_MAP_KEY || 'EJPBZ-DQEEQ-PDN5U-4ZDVX-F4I3F-6MBJC'
const TENCENT_MAP_KEY = import.meta.env.VITE_TENCENT_MAP_KEY?.trim() || ''
const TENCENT_MAP_BASE_URL = 'https://apis.map.qq.com/ws'
const TENCENT_DIRECTION_BASE_URL = `${TENCENT_MAP_BASE_URL}/direction/v1`