Files
cunkebao_v3/SuperAdmin/lib/config.ts
Manus AI 03ae8c07b6 feat: 同步本地全量开发到 GitHub(前端/后端/超管/开发文档规则)
含 AI 助手、抖音 OAuth、流量池推送、支付获客、SuperAdmin 设备与场景管理等本地迭代;以本地为准单向推送,未拉取远程。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 22:12:40 +08:00

13 lines
398 B
TypeScript
Raw Permalink 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.

/**
* 超管 API 基址(无尾斜杠)
* - 本地 dev/api/v1/admin由 next.config rewrites 反代到 8082
* - Docker/api/v1/admin反代到 cunkebao-server
* - 直连后端http://localhost:8082/v1/admin
*/
export function getConfig() {
const apiBaseUrl =
process.env.NEXT_PUBLIC_API_BASE_URL?.replace(/\/$/, '') ||
'/api/v1/admin';
return { apiBaseUrl };
}