32 lines
615 B
TypeScript
32 lines
615 B
TypeScript
import { defineConfig } from "vite";
|
|
import { fileURLToPath, URL } from "node:url";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@shared": fileURLToPath(new URL("../shared", import.meta.url))
|
|
}
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
fs: {
|
|
allow: [fileURLToPath(new URL("..", import.meta.url))]
|
|
},
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
}
|
|
},
|
|
preview: {
|
|
port: 4173
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 1500
|
|
}
|
|
});
|