Clinical-DataBase-Analysis / vite.config.js
prithivMLmods's picture
Upload 8 files
38d4dbe verified
raw
history blame contribute delete
447 Bytes
import dotenv from 'dotenv';
dotenv.config();
import { defineConfig } from 'vite';
import reactRefresh from '@vitejs/plugin-react-refresh';
const { PORT = 7860 } = process.env;
// https://vitejs.dev/config/
export default defineConfig({
plugins: [reactRefresh()],
server: {
proxy: {
'/api': {
target: `http://localhost:${PORT}`,
changeOrigin: true,
},
},
},
build: {
outDir: 'dist/app',
},
});