diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-23 19:44:59 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-23 19:44:59 -0600 |
commit | dec7b614d895a1b507137e4a96a8999ff63aa179 (patch) | |
tree | 827437755bf9674db51818ee59d919c74a4ea2fc /client/vite.config.ts | |
parent | d64ffb5016119e54f0e20d05ae8ac9c96955d9d5 (diff) | |
download | jumpstorm-dec7b614d895a1b507137e4a96a8999ff63aa179.tar.gz jumpstorm-dec7b614d895a1b507137e4a96a8999ff63aa179.zip |
holy fuck we actually got somewhere
Diffstat (limited to 'client/vite.config.ts')
-rw-r--r-- | client/vite.config.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/vite.config.ts b/client/vite.config.ts index 0307338..cdf1ab1 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -4,6 +4,16 @@ import { fileURLToPath, URL } from "node:url"; // https://vitejs.dev/config/ export default defineConfig({ + server: { + proxy: { + "/api": { + target: "http://localhost:8080", + ws: true, + rewrite: (path) => path.replace(/^\/api/, ""), + }, + }, + }, + cors: true, plugins: [svelte()], resolve: { alias: { |