2023-03-09 17:08:43 +01:00
|
|
|
import { sveltekit } from "@sveltejs/kit/vite";
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [sveltekit()],
|
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
"/api": {
|
|
|
|
target: "http://localhost:8080",
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
|
|
|
},
|
|
|
|
"/media": {
|
|
|
|
target: "http://localhost:9000",
|
|
|
|
changeOrigin: true,
|
2023-03-11 01:36:30 +01:00
|
|
|
rewrite: (path) => path.replace(/^\/media/, "/pronouns.cc"),
|
2023-03-09 17:08:43 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-03-11 01:36:30 +01:00
|
|
|
ssr: {
|
|
|
|
noExternal: ["@popperjs/core"],
|
|
|
|
},
|
2023-03-09 17:08:43 +01:00
|
|
|
});
|