source: frontend/vite.config.js@ b3d5fed

Last change on this file since b3d5fed was 8c01a1f, checked in by Andrej <asumanovski@…>, 5 months ago

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

  • Property mode set to 100644
File size: 767 bytes
Line 
1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3import tailwindcss from '@tailwindcss/vite';
4
5// https://vite.dev/config/
6export default defineConfig({
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 },
26})
Note: See TracBrowser for help on using the repository browser.