niming/vite.config.ts

16 lines
330 B
TypeScript
Raw Normal View History

2024-10-27 18:29:40 +08:00
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
2024-11-04 01:18:21 +08:00
import Icons from 'unplugin-icons/vite'
2024-10-27 18:29:40 +08:00
export default defineConfig({
plugins: [sveltekit(), Icons({ compiler: 'svelte' })],
server: {
proxy: {
'/article': {
target: "http://10.16.20.17:5000",
changeOrigin: true,
}
}
}
2024-10-27 18:29:40 +08:00
});