summaryrefslogtreecommitdiff
path: root/client/vite.config.ts
diff options
context:
space:
mode:
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))
+ }
+ }
});