18 lines
595 B
JavaScript
18 lines
595 B
JavaScript
import { defineConfig } from "vite"
|
|
import react from "@vitejs/plugin-react"
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
import { fileURLToPath, URL } from "node:url"
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } },
|
|
server: {
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
"/api": { target: "http://localhost:1029", changeOrigin: true },
|
|
"/admin": { target: "http://localhost:1029", changeOrigin: true },
|
|
"/static": { target: "http://localhost:1029", changeOrigin: true },
|
|
},
|
|
},
|
|
})
|