build(*): Attempt to get env vars working

This commit is contained in:
Josh Creek
2024-04-06 17:06:00 +01:00
parent 49e39c2742
commit 4ca2ddb181
+3 -1
View File
@@ -1,5 +1,7 @@
export function getEnv() { export function getEnv() {
return { return process.env.hasOwnProperty('MONGO_URL')
? process.env
: {
MONGO_URL: import.meta.env.VITE_MONGO_URL MONGO_URL: import.meta.env.VITE_MONGO_URL
}; };
} }