Browse Source

update code

yb 1 month ago
parent
commit
59b9bd4ea2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      vite.config.ts

+ 6 - 0
vite.config.ts

@@ -14,6 +14,12 @@ export default defineConfig({
     port: 3000,
     open: true,
     proxy: {
+      // Hono 后端 API(Cloudflare Stream)
+      '/api/stream': {
+        target: 'http://localhost:8787',
+        changeOrigin: true
+      },
+      // 其他后端 API(如若依)
       '/api': {
         target: 'http://localhost:8080',
         changeOrigin: true,