summaryrefslogtreecommitdiff
path: root/client/vite.config.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-25 16:48:17 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-25 16:48:17 -0600
commit773ce84f4bf559337e132edd7fcce02a0a2598fd (patch)
tree5fd0b452b459cc5a5b6a1ed98f2d7b9af950864d /client/vite.config.ts
parentdec7b614d895a1b507137e4a96a8999ff63aa179 (diff)
downloadjumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.tar.gz
jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.zip
prettier formatting
Diffstat (limited to 'client/vite.config.ts')
-rw-r--r--client/vite.config.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/client/vite.config.ts b/client/vite.config.ts
index cdf1ab1..d8b999c 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -1,23 +1,23 @@
-import { defineConfig } from "vite";
-import { svelte } from "@sveltejs/vite-plugin-svelte";
-import { fileURLToPath, URL } from "node:url";
+import { defineConfig } from 'vite';
+import { svelte } from '@sveltejs/vite-plugin-svelte';
+import { fileURLToPath, URL } from 'node:url';
// https://vitejs.dev/config/
export default defineConfig({
server: {
proxy: {
- "/api": {
- target: "http://localhost:8080",
+ '/api': {
+ target: 'http://localhost:8080',
ws: true,
- rewrite: (path) => path.replace(/^\/api/, ""),
- },
- },
+ rewrite: (path) => path.replace(/^\/api/, '')
+ }
+ }
},
cors: true,
plugins: [svelte()],
resolve: {
alias: {
- "@engine": fileURLToPath(new URL("../engine", import.meta.url)),
- },
- },
+ '@engine': fileURLToPath(new URL('../engine', import.meta.url))
+ }
+ }
});