heroweb/svelte/filemanager/myfiles/vite.config.js

26 lines
461 B
JavaScript
Raw Permalink Normal View History

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