Skip to content
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

default to production when no NODE_ENV #3614

Merged
merged 3 commits into from
Aug 22, 2024
Merged

default to production when no NODE_ENV #3614

merged 3 commits into from
Aug 22, 2024

Conversation

Irev-Dev
Copy link
Collaborator

Resolves #3576

Looks like something @lf94 added so I'll put him on review in case there's something I'm missing here.

Copy link

qa-wolf bot commented Aug 22, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Aug 22, 2024

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Aug 22, 2024 0:32am

if (!process.env.NODE_ENV)
console.warn(
'*FOX SCREAM* process.env.NODE_ENV is not explicitly set!, defaulting to production'
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes we need this because the built package won't work I actually told jess about it a few days ago, nice catch!

I'm a little on the fence exposing this error to users but at the same time I can imagine anyone missing this argument and wondering what's going on. So I think it's good as-is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah mostly likely their app launcher is going to eat all these logs anyways

@jessfraz jessfraz merged commit 9f370fb into main Aug 22, 2024
20 of 24 checks passed
@jessfraz jessfraz deleted the kurt-3576 branch August 22, 2024 20:02
@jessfraz
Copy link
Contributor

failures were unrelated

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.

NODE_ENV should not need to be set on release app
3 participants