-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Environment variables and added .env #13
Conversation
@Ali1Ammar @skillLan What do you think of this new feature? |
I don't think this is well supported by simply parsing |
@jacobaraujo7 I have rethought this problem, we may need to redesign the configuration, and solve the problem by the way:
For this, I created a new requirement issue to document this feature 👉 #15 |
Hello. The objective of this feature is to bring the Dart Prisma closer and closer to the Prisma used in NodeJS, making it easier to understand that it already comes from this stack. Personally, I prefer to add the environment variable directly to the system, but as many use it, I decided to make this effort. |
If Dart allows environment variables to be overwritten at runtime, it may be good to configure with .env. However, the environment variable of Dart VM is read-only and cannot be overwritten or appended. The experience of using dotenv in Dart is really bad. |
Maybe we can give the option downstream, use the dot priama runtime configuration, or dotenv, depending on how it is configured in pubspce.yaml and the .env file is loaded by default. |
@medz I agree with this point. It really is much better to add the environment variables directly into the system or with --define. I will close this pullrequest. |
I made a new PR with only this 2 commits. |
@jacobaraujo7 Released version 2.1.0 👉 https://github.com/odroe/prisma-dart/releases/tag/2.1.0 Environment variable configuration using |
Added .env file support.
Also added Stacktrace to better find errors.