Changeset 505f39a for lan-frontend/vite.config.js
- Timestamp:
- 01/21/26 13:35:44 (6 months ago)
- Branches:
- master
- Children:
- d42aac3
- Parents:
- 2058e5c
- File:
-
- 1 edited
-
lan-frontend/vite.config.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lan-frontend/vite.config.js
r2058e5c r505f39a 1 import { defineConfig } from 'vite' 2 import react from '@vitejs/plugin-react' 1 // import { defineConfig } from "vite"; 2 // import react from "@vitejs/plugin-react"; 3 // 4 // export default defineConfig({ 5 // plugins: [react()], 6 // server: { 7 // proxy: { 8 // "/api": { target: "http://localhost:5555", changeOrigin: true }, 9 // "/receive": { target: "http://localhost:5555", changeOrigin: true }, 10 // "/ping": { target: "http://localhost:5555", changeOrigin: true }, 11 // }, 12 // }, 13 // }); 14 import { defineConfig } from "vite"; 15 import react from "@vitejs/plugin-react"; 3 16 4 // https://vite.dev/config/ 5 export default { 17 export default defineConfig({ 18 plugins: [react()], 6 19 server: { 7 20 proxy: { 8 "/api": "http://localhost:5555", 21 "/api": { 22 target: "http://localhost:5555", 23 changeOrigin: true, 24 secure: false, 25 }, 26 "/receive": { 27 target: "http://localhost:5555", 28 changeOrigin: true, 29 secure: false, 30 }, 9 31 }, 10 32 }, 11 } ;33 });
Note:
See TracChangeset
for help on using the changeset viewer.
