heroweb/svelte/filemanager/myfiles/vite.config.js
2024-09-13 16:00:11 +03: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/, ''),
},
},
},
})