-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove dotenv #946
remove dotenv #946
Conversation
Unfortunately that doesn't work. 😞 The As a test, I grabbed your branch and appended to the If the workflow or any scripts need the file, maybe they can create it on the fly? EDIT: Alternatively, if we never intend for anyone to add contents to this file, then it's probably safe to have in source control. We just probably should take it out of |
Ohh thanks! I didn't consider that. I wonder if there is some better way to have a default .env file. |
I removed .env from the gitignore. |
Here is a related issue: Maybe we can just add the empty file? and remove from gitignore? |
Do we need that line at all of the
That sounds reasonable too, with our current usage. |
I believe we might just be able to get rid of In the future, we might want to add in secrets for API endpoints (Imgur, or other APIs). If that's the case, then we can revisit this discussion. Thoughts? |
This is a decent summary: https://www.sandromaglione.com/articles/how-to-use-environmental-variables-in-flutter I think we can use And .vscode/launch.json can be used to pass variables for development. So I think getting rid of the dotenv makes sense. |
Just updated it and removed it, I can change it back if that's not what you want |
Looks good to me! Thanks for doing this @gwbischof |
The .env file is needed to build the app.
Github workflows to build the app will fail without it.
I did a bit of googling and I didn't find a way to change the pubspec.yaml (which uses the .env) to handle a missing .env file.
Adding an empty .env file removes a step from getting thunder running.
I left the .env in the gitignore so peoples changes to .env wont accidentally get pushed.