fromis_9/frontend/vite.config.js

28 lines
532 B
JavaScript
Raw Normal View History

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
host: true,
port: 80,
allowedHosts: true,
proxy: {
"/api": {
target: "http://fromis9-backend:80",
changeOrigin: true,
},
"/docs": {
target: "http://fromis9-backend:80",
changeOrigin: true,
},
},
},
});