-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
feat: env vars should be readonly #111
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Zamiell is attempting to deploy a commit to the t3-oss Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test like this too for good measure and to show what we're after:
// @ts-expect-error - readonly
env.FOO = true
Should we also Object.freeze
something?
Personally I'm not a fan of Pros
Cons
Overall it seems like the cons outweigh the pros. Also note that there is no performance benefit to doing this. |
im not a fan of committing commented out code into a repository, can I remove this please? |
Nah I want it as a reference to why the behavior is the way it is if we come back to it in the future |
Closes #108