Changeset 8c01a1f for frontend/vite.config.js
- Timestamp:
- 02/10/26 18:31:21 (5 months ago)
- Branches:
- master
- Children:
- 6fa5831
- Parents:
- ff01f66
- File:
-
- 1 edited
-
frontend/vite.config.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
frontend/vite.config.js
rff01f66 r8c01a1f 6 6 export default defineConfig({ 7 7 plugins: [react(), tailwindcss()], 8 server: { 9 proxy: { 10 // Dev-only Yahoo Finance proxy to avoid browser CORS. 11 // Frontend can call `/yahoo/...` and `/yahoo2/...` as same-origin. 12 '/yahoo': { 13 target: 'https://query1.finance.yahoo.com', 14 changeOrigin: true, 15 secure: true, 16 rewrite: (path) => path.replace(/^\/yahoo/, ''), 17 }, 18 '/yahoo2': { 19 target: 'https://query2.finance.yahoo.com', 20 changeOrigin: true, 21 secure: true, 22 rewrite: (path) => path.replace(/^\/yahoo2/, ''), 23 }, 24 }, 25 }, 8 26 })
Note:
See TracChangeset
for help on using the changeset viewer.
