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

Only show deprecation message in development #4206

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

timneutkens
Copy link
Member

No description provided.

@leo leo self-requested a review April 24, 2018 22:25
@leo leo merged commit fe24333 into vercel:canary Apr 24, 2018
@timneutkens timneutkens deleted the fix/only-deprecate-message-on-dev branch April 24, 2018 22:46
@@ -86,7 +86,11 @@ export class Container extends Component {
}
}

const warnUrl = execOnce(() => warn(`Warning: the 'url' property is deprecated. https://err.sh/next.js/url-deprecated`))
const warnUrl = execOnce(() => {
if (process.env.NODE_ENV !== 'PRODUCTION') {
Copy link
Contributor

Choose a reason for hiding this comment

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

The value should not be all caps.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch 👍

lependu pushed a commit to lependu/next.js that referenced this pull request Jun 19, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants