You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package:dotenv tries to read .env file form the file system, but we only deploy dart executable without any files.
If you deploy from CLI, it will pick up your .env and prompt you to create env vars on Globe.
You could also go to Project > Settings > Environment variables and create env vars there manually.
To workaround this issue, you could do something like this:
var env =Platform.environment['GLOBE'] =='true'?Platform.environment :DotEnv().load();
We're working on fixing this issue and this workaround is temporary.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For future readers:
package:dotenv
tries to read.env
file form the file system, but we only deploy dart executable without any files.If you deploy from CLI, it will pick up your
.env
and prompt you to create env vars on Globe.You could also go to Project > Settings > Environment variables and create env vars there manually.
To workaround this issue, you could do something like this:
We're working on fixing this issue and this workaround is temporary.
Beta Was this translation helpful? Give feedback.
All reactions