mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-12 18:43:45 +00:00
build(*): Attempt to get env vars working
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
export function getEnv() {
|
||||
return {
|
||||
MONGO_URL: import.meta.env.VITE_MONGO_URL
|
||||
};
|
||||
return process.env.hasOwnProperty('MONGO_URL')
|
||||
? process.env
|
||||
: {
|
||||
MONGO_URL: import.meta.env.VITE_MONGO_URL
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user