rsnext/packages
JJ Kasper 83bc82e40a
Fix auto export opting out from _error edge case (#13425)
This fixes an edge case where an application can seemingly randomly be opted out of the automatic static optimization from having an `_error` file that isn't directly nested under the `pages` folder e.g. `pages/hello/_error.js`. 

Since in serverless mode we use the `_app` export from the first serverless page, if this `_error.js` file is used to check for custom `getIniitalProps` in `_app` and the `_error.js` page had a custom `getInitialProps` itself it would cause the check to fail opting the application out of the static optimization. 

This fixes it by having the check be explicit instead of relying on the bundle name and it also adds regression tests for this. It might be good to also add a warning when `_error` or `_app` are not directly nested under the pages folder in a follow up PR
2020-05-27 05:31:57 +00:00
..
create-next-app v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
eslint-plugin-next v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next Fix auto export opting out from _error edge case (#13425) 2020-05-27 05:31:57 +00:00
next-bundle-analyzer v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next-mdx v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next-plugin-google-analytics v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next-plugin-material-ui v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next-plugin-sentry v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next-plugin-storybook v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
next-polyfill-nomodule v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
react-dev-overlay v9.4.3-canary.1 2020-05-26 23:25:53 -04:00
react-refresh-utils v9.4.3-canary.1 2020-05-26 23:25:53 -04:00