18 lines
392 B
JavaScript
18 lines
392 B
JavaScript
import { defineConfig } from "vite";
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
server: {
|
|
proxy: {
|
|
"/short/": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
rewrite: (path) => path.replace(/^\/short/, ""),
|
|
},
|
|
},
|
|
},
|
|
});
|