mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
17 lines
328 B
TypeScript
17 lines
328 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import type { UserConfig } from 'vite';
|
|
|
|
const config: UserConfig = {
|
|
plugins: [sveltekit()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8000',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|