heroweb/svelte/myfiles/vite.config.js
2024-09-02 14:50:47 +02:00

26 lines
461 B
JavaScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte(
{
compilerOptions: {
customElement: true
}
}
)],
server: {
proxy: {
'/fm': {
target: 'http://localhost:3200',
changeOrigin: true,
secure: false,
rewrite: path => path.replace(/^\/fm/, ''),
},
},
},
})