aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/vite.config.js b/vite.config.js
index 861b04b..e55de70 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,7 +1,13 @@
-import { defineConfig } from 'vite'
-import react from '@vitejs/plugin-react-swc'
+import { defineConfig } from 'vite';
+import react from '@vitejs/plugin-react';
+import dotenv from 'dotenv';
+
+// Load environment variables from .env file
+dotenv.config();
-// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
-})
+ define: {
+ 'process.env': process.env,
+ },
+});