29 lines
606 B
TypeScript
29 lines
606 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react({ babel: { plugins: ["relay"] } }), tailwindcss()],
|
|
build: {
|
|
assetsDir: "assets",
|
|
},
|
|
base: "./",
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"#": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
});
|