25 lines
508 B
TypeScript
25 lines
508 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
base: "/movie-select/",
|
|
plugins: [react(), tailwindcss()],
|
|
build: {
|
|
outDir: "dist/client",
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/movie-select/api": {
|
|
target: "http://localhost:3001",
|
|
rewrite: (path) => path.replace(/^\/movie-select\/api/, ""),
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": new URL("./src", import.meta.url).pathname,
|
|
},
|
|
},
|
|
});
|