build(*): Attempt to get env vars working

This commit is contained in:
Josh Creek
2024-04-06 17:06:00 +01:00
parent 3c1ae70392
commit aee56d0fc9
+5 -3
View File
@@ -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
};
}