niming/vite.config.ts
2025-01-05 22:42:05 +08:00

19 lines
360 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import Icons from 'unplugin-icons/vite';
export default defineConfig({
plugins: [sveltekit(), Icons({
compiler: 'svelte',
})],
server: {
proxy: {
'/article': {
target: "http://10.16.20.17:5000",
changeOrigin: true,
}
}
}
});