From aa394f428a7510dfc5b5f61e890f2461c667171f Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Wed, 23 Nov 2022 23:38:27 +0100 Subject: [PATCH] fix: loading dotenv in vite config --- vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.js b/vite.config.js index 8da606b..80c7f64 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,10 @@ import { defineConfig } from 'vite' +import dotenv from 'dotenv' import preact from '@preact/preset-vite' +dotenv.config() + console.log(`[Config] BASE_URL = "${process.env.BASE_URL}"`) export default defineConfig({