Spaces:
Sleeping
Sleeping
| import { defineConfig, loadEnv } from 'vite'; | |
| import react from '@vitejs/plugin-react'; | |
| // https://vitejs.dev/config/ | |
| export default defineConfig(({ mode }) => { | |
| // Load env file based on `mode` in the current working directory. | |
| const env = loadEnv(mode, '.', ''); | |
| return { | |
| plugins: [react()], | |
| server: { | |
| allowedHosts: true, | |
| host: true | |
| }, | |
| // Removed 'define' block for process.env.API_KEY as the key is now provided by the user via UI | |
| }; | |
| }); | |