estatesfunding/ef-ui/vite.config.js

21 lines
573 B
JavaScript
Raw Normal View History

2024-08-26 14:03:54 +00:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
2024-09-04 05:53:00 +00:00
// const BASE_URL = import.meta.env.VITE_REACT_APP_SECRET;
// console.log("Base URL:", BASE_URL);
2024-09-04 00:52:26 +00:00
2024-08-26 14:03:54 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2024-09-04 00:52:26 +00:00
server: {
proxy: {
2024-09-04 05:53:00 +00:00
// '/users/signup': BASE_URL || 'http://localhost:3002',
// '/users/signin': BASE_URL || 'http://localhost:3002',
2024-09-04 06:06:29 +00:00
'/users/signup': 'http://67.225.129.127:3002/', // Fallback if BASE_URL is undefined
'/users/signin': 'http://67.225.129.127:3002/',
2024-09-04 00:52:26 +00:00
},
},
2024-08-26 14:03:54 +00:00
})