import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], base: './', server: { host: '127.0.0.1', port: 5173, strictPort: false, proxy: { '/radio-si-data': { target: 'https://data.radio.si', changeOrigin: true, secure: true, rewrite: (path) => path.replace(/^\/radio-si-data/, ''), }, }, }, preview: { host: '127.0.0.1', port: 4173, strictPort: false, }, });