mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 18:19:52 +01:00
23 lines
547 B
TypeScript
23 lines
547 B
TypeScript
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,
|
|
rewrite: (path) => path.replace(/^\/media/, "/pronouns.cc"),
|
|
},
|
|
},
|
|
},
|
|
ssr: {
|
|
noExternal: ["@popperjs/core"],
|
|
},
|
|
});
|