Skip to content

Conversation

@rijuma
Copy link

@rijuma rijuma commented May 8, 2025

Just adding my two cents on this amazing project. Accessing env variables with process.env variables impacts on performance (read github issue), as it involves a C-level lookup that can be slower than accessing a regular JavaScript variable.

Assigning it to a variable and exporting it makes it lookup only once. It's just a NIT.

Additionally, a super nit is the change for using className={isDev ? 'dev' : null} instead of className={isDev && 'dev'} (returning null instead of false) avoids an empty class attribute on the html tag.

@vercel
Copy link

vercel bot commented May 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
aniso ❌ Failed (Inspect) May 8, 2025 10:31pm

@vercel
Copy link

vercel bot commented May 8, 2025

@rijuma is attempting to deploy a commit to the darkroom Team on Vercel.

A member of the Team first needs to authorize it.

@rijuma
Copy link
Author

rijuma commented Jul 31, 2025

Removed due to lack of interest.

@rijuma rijuma closed this Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant