Commit fe24333e authored by Tim Neutkens's avatar Tim Neutkens Committed by Leo Lamprecht

Only show deprecation message in development (#4206)

parent 0daf9bee
...@@ -86,7 +86,11 @@ export class Container extends Component { ...@@ -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') {
warn(`Warning: the 'url' property is deprecated. https://err.sh/next.js/url-deprecated`)
}
})
export function createUrl (router) { export function createUrl (router) {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment