Spaces:
Sleeping
Sleeping
File size: 397 Bytes
9622e90 f80e9b3 9622e90 f80e9b3 9622e90 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
// IMPORTANT: proxy API calls to backend when running both inside one container
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": "http://127.0.0.1:8000"
}
}
});
|