Files
spotizerr-dev/spotizerr-ui/vite.config.ts
2025-06-11 10:41:32 +02:00

27 lines
602 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { fileURLToPath } from "url";
import { dirname, resolve } from "path";
import tailwindcss from "@tailwindcss/vite";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:7171",
changeOrigin: true,
},
},
},
});