23 lines
427 B
TypeScript
23 lines
427 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import path from "path";
|
|
|
|
export default defineConfig(() => {
|
|
return {
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://0.0.0.0:8000/",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
}
|
|
};
|
|
});
|