mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 12:19:52 +01:00
25 lines
692 B
TypeScript
25 lines
692 B
TypeScript
import { sveltekit } from "@sveltejs/kit/vite";
|
|
import { defineConfig } from "vite";
|
|
import { plugin as markdown, Mode as MarkdownMode } from "vite-plugin-markdown";
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit(), markdown({ mode: [MarkdownMode.HTML] })],
|
|
server: {
|
|
host: "127.0.0.1",
|
|
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"],
|
|
},
|
|
});
|