-
-
Notifications
You must be signed in to change notification settings - Fork 597
Fix disappearing SERVER_RENDERING env var #873
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
Fix disappearing SERVER_RENDERING env var #873
Conversation
Codecov Report
@@ Coverage Diff @@
## master #873 +/- ##
=======================================
Coverage 92.14% 92.14%
=======================================
Files 54 54
Lines 5006 5006
Branches 1121 1121
=======================================
Hits 4613 4613
Misses 393 393 Continue to review full report at Codecov.
|
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.
@darrenkidd thanks for the PR! It makes sense to me. @dplewis do you also want to take a look?
In your test log I don’t see |
Hey @dplewis,
Not sure what that's testing, as
Let me know if you need anything else. |
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.
Just tried and it looks good.
@darrenkidd thanks for contributing! |
No worries, happy to help! Will see if there are some other tasks to pick off when I get time. |
Getting this warning over and over again in my Next.JS project:
Was driving me a bit crazy, as I most certainly do have
SERVER_RENDERING=1
set for my app. I've confirmed this viaconsole.log()
directly before theParse.Initialize()
call.Looking at my
./node_modules/parse/lib/browser/Parse.js
shows this (odd) line:Given that it's most definitely being written correctly here, I was able to track it down to the slightly misconfigured env transform plugin you'll see in the diff.
Have confirmed that this is the only variable that needs to be excluded from the 3 different build types (
PARSE_BUILD
is the main target for this inline replacement):All tests pass as expected - I didn't touch any actual code.
Here's the full run-down to prove the fix works:
I haven't created an issue but I'm happy to do so if needed.
Related: