add new sveltekit frontend
This commit is contained in:
commit
fc4334932a
40 changed files with 3802 additions and 0 deletions
23
frontend/vite.config.ts
Normal file
23
frontend/vite.config.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
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"],
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue