@tacoreai/web-sdk 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/index.js +4 -0
package/package.json
CHANGED
package/utils/index.js
CHANGED
|
@@ -47,6 +47,10 @@ export function getRouterBasename() {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export function getAppsApiBaseUrl() {
|
|
50
|
+
// stone手动: 标准构建 ssr 环境,直接返回生产环境地址
|
|
51
|
+
if (process.env.MODE === 'production' && process.env.SSR === 'true') {
|
|
52
|
+
return `https://api.tacore.chat`;
|
|
53
|
+
}
|
|
50
54
|
// 后端环境逻辑
|
|
51
55
|
if (isBackend) {
|
|
52
56
|
// stone 手动: tacore server 内网地址
|