-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Prevent false positive experimental warning #8284
Prevent false positive experimental warning #8284
Conversation
Stats from current PRClick to expand stats
Click to expand serverless stats
|
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.
Let's also add a test to prevent this from regressing!
@Timer Where should I add them? |
…itive-experimental-warning
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.
Looks good, thanks for the PR! I went ahead and added some tests so we can get this merged 👍
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
When you have a config function:
https://github.com/zeit/next.js/blob/canary/packages/next-server/server/config.ts#L76
defaultConfig.experimental
ends up as user config here and it creates a false positive warning even if a user doesn't have any experimental config.