This commit is contained in:
2026-07-24 12:30:50 +08:00
4 changed files with 19 additions and 61 deletions

View File

@@ -43,7 +43,7 @@ const baseConfig: UserConfigExport = {
compiler: "webpack5",
defineConstants: {
"process.env.TARO_APP_API_BASE_URL": JSON.stringify(process.env.TARO_APP_API_BASE_URL || DEFAULT_API_BASE_URL),
"process.env.TARO_APP_H5_URL": JSON.stringify(process.env.TARO_APP_H5_URL ?? "http://127.0.0.1:5173"),
"process.env.TARO_APP_H5_URL": JSON.stringify(process.env.TARO_APP_H5_URL ?? "https://wanderq.nianxx.com"),
},
alias: {
// Taro 4.2.1 requires React 18. Keep the mini program's renderer on the

View File

@@ -1,6 +1,6 @@
import { WebView } from "@tarojs/components";
const H5_URL = String(process.env.TARO_APP_H5_URL ?? "http://127.0.0.1:5173");
const H5_URL = String(process.env.TARO_APP_H5_URL ?? "https://wanderq.nianxx.com");
const H5_CACHE_VERSION = "ui-20260723-tab-seam-v7";
const H5_SRC = `${H5_URL}${H5_URL.includes("?") ? "&" : "?"}v=${H5_CACHE_VERSION}`;