niming/vite.config.ts

16 lines
351 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({
2024-12-22 22:57:01 +08:00
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
});