ToneGuessr/client/vite.config.js
Mathias Wagner 62acb290fe
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 4m2s
Initial commit
2025-02-27 19:24:14 +01:00

22 lines
469 B
JavaScript

import {defineConfig} from "vite";
import react from "@vitejs/plugin-react";
import * as path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/socket.io": {
target: "http://localhost:5287",
changeOrigin: true,
ws: true,
},
},
},
})