Skip to content

change NODE_ENV and PUBLIC_URL into readonly#6750

Merged
mrmckeb merged 1 commit intofacebook:masterfrom
xiaoxiangmoe:master
Apr 7, 2019
Merged

change NODE_ENV and PUBLIC_URL into readonly#6750
mrmckeb merged 1 commit intofacebook:masterfrom
xiaoxiangmoe:master

Conversation

@xiaoxiangmoe
Copy link
Copy Markdown
Contributor

after change it

process.env.NODE_ENV = 'development'

will throw

Cannot assign to 'NODE_ENV' because it is a read-only property.ts(2540)

Copy link
Copy Markdown
Contributor

@mrmckeb mrmckeb left a comment

Choose a reason for hiding this comment

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

Great idea, @xiaoxiangmoe. Let's get this one in!

@mrmckeb
Copy link
Copy Markdown
Contributor

mrmckeb commented Apr 7, 2019

@xiaoxiangmoe - can you please rebase from master and see if that fixes your tests, I'm assuming it will. I know the tests failures are unrelated, but I think we should make sure they're passing regardless.

CC @iansu @ianschmitz

@mrmckeb mrmckeb merged commit ebabd18 into facebook:master Apr 7, 2019
@mrmckeb
Copy link
Copy Markdown
Contributor

mrmckeb commented Apr 7, 2019

Thanks again, @xiaoxiangmoe

@lock lock bot locked and limited conversation to collaborators Apr 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants