0a754c17a3
add backend api and add some element of the webpage
16 lines
330 B
TypeScript
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,
|
|
}
|
|
}
|
|
}
|
|
});
|