修复环境变量问题

This commit is contained in:
2026-04-14 11:34:28 +08:00
parent 9a8a1826c9
commit 319baea5e8
8 changed files with 60 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
// 定义后端服务URL和OAuth2配置
const _api_base_url = process.env.NEXT_PUBLIC_API_BASE_URL
if (!_api_base_url) throw new Error('NEXT_PUBLIC_API_BASE_URL is not set')
const _api_base_url = process.env.API_BASE_URL
if (!_api_base_url) throw new Error('API_BASE_URL is not set')
const API_BASE_URL = _api_base_url
const _client_id = process.env.CLIENT_ID