summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-09-02 18:04:09 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-09-02 18:04:09 -0600
commitc9070bb0566b30fc64481193d3571284296ee14b (patch)
treee0264a7fe1b421c1c30919a82815f8129f170921
parentc370d02ed7c705fc8352ec3aac6c3d82091fb5ce (diff)
downloadjumpstorm-c9070bb0566b30fc64481193d3571284296ee14b.tar.gz
jumpstorm-c9070bb0566b30fc64481193d3571284296ee14b.zip
don't rewrite api path in vite
-rw-r--r--client/vite.config.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/vite.config.ts b/client/vite.config.ts
index d8b999c..744a5f6 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -8,8 +8,7 @@ export default defineConfig({
proxy: {
'/api': {
target: 'http://localhost:8080',
- ws: true,
- rewrite: (path) => path.replace(/^\/api/, '')
+ ws: true
}
}
},