Files
go-weather/frontend/vite.config.ts
T
cody 35b0c2396f add the very basics of a plot
Also troubleshoot to fix vite config for deduplicating react and
react-dom
2026-02-18 19:52:08 -08:00

24 lines
521 B
TypeScript

import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
dedupe: ['react', 'react-dom'],
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:8080",
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
})