Browse Source

chore: update production environment API base URL and Vite proxy target

- 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.
yb 3 tuần trước cách đây
mục cha
commit
9401978176
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      .env.production
  2. 2 2
      vite.config.ts

+ 1 - 1
.env.production

@@ -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

+ 2 - 2
vite.config.ts

@@ -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
       }