fix: loading dotenv in vite config

pull/1/head
Antonio De Lucreziis 2 years ago
parent 49632f1e2c
commit aa394f428a

@ -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({

Loading…
Cancel
Save