learn_geoscience_quiz_maker / vite.config.ts
pvyas96's picture
Upload 20 files
c235ef4 verified
raw
history blame contribute delete
480 Bytes
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
};
});