niming/vite.config.ts
jasinco 0a754c17a3 Add Backend API
add backend api and add some element of the webpage
2024-11-25 07:02:06 +08:00

16 lines
330 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,
}
}
}
});