2025-10-13 20:22:47 +02:00
|
|
|
import { reactRouter } from "@react-router/dev/vite";
|
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
|
2025-10-14 17:25:09 +02:00
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
"/api": {
|
|
|
|
|
target: "http://localhost:8000",
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
"/sanctum": {
|
|
|
|
|
target: "http://localhost:8000",
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-10-13 20:22:47 +02:00
|
|
|
});
|