Ignore:
Timestamp:
02/10/26 18:31:21 (5 months ago)
Author:
Andrej <asumanovski@…>
Branches:
master
Children:
6fa5831
Parents:
ff01f66
Message:

Made investing tab and adding assets, starting training tracking and adding training sessions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/vite.config.js

    rff01f66 r8c01a1f  
    66export default defineConfig({
    77  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  },
    826})
Note: See TracChangeset for help on using the changeset viewer.