diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-09-02 18:04:09 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-09-02 18:04:09 -0600 |
commit | c9070bb0566b30fc64481193d3571284296ee14b (patch) | |
tree | e0264a7fe1b421c1c30919a82815f8129f170921 | |
parent | c370d02ed7c705fc8352ec3aac6c3d82091fb5ce (diff) | |
download | jumpstorm-c9070bb0566b30fc64481193d3571284296ee14b.tar.gz jumpstorm-c9070bb0566b30fc64481193d3571284296ee14b.zip |
don't rewrite api path in vite
-rw-r--r-- | client/vite.config.ts | 3 |
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 } } }, |