mirror of
https://github.com/System-End/stickers.git
synced 2026-04-19 22:05:10 +00:00
19 lines
383 B
TypeScript
19 lines
383 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:9292',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
},
|
|
'/auth': {
|
|
target: 'http://localhost:9292',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
});
|