- Changed the production API base URL in .env.production to use the new domain. - Updated the Vite proxy target in vite.config.ts to reflect the new API endpoint.
@@ -5,4 +5,4 @@ NODE_ENV=production
VITE_APP_TITLE=摄像头管理系统
# API 基础路径 (生产环境使用完整 URL,因为 Cloudflare Pages 没有代理)
-VITE_APP_BASE_API=https://tg-live-game-api.ifoodme.com/api
+VITE_APP_BASE_API=https://tg-live-game.pwtk.cc/api
@@ -18,9 +18,9 @@ export default defineConfig({
port: 3000,
open: true,
proxy: {
- // Hono 后端 API (Cloudflare Workers)
+ // 后端 API
'/api': {
- target: 'https://tg-live-game-api.ifoodme.com',
+ target: 'https://tg-live-game.pwtk.cc',
changeOrigin: true,
secure: true
}