Unverified Commit 0648c355 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update auto export opt-out warning and err.sh (#11801)

parent 7d6fbe7f
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
You are using `getInitialProps` in your [Custom `<App>`](https://nextjs.org/docs#custom-app). You are using `getInitialProps` in your [Custom `<App>`](https://nextjs.org/docs#custom-app).
This causes **all pages** to be executed on the server -- disabling [Automatic Static Optimization](https://nextjs.org/docs#automatic-static-optimization). This causes **all non-getStaticProps pages** to be executed on the server -- disabling [Automatic Static Optimization](https://nextjs.org/docs#automatic-static-optimization).
#### Possible Ways to Fix It #### Possible Ways to Fix It
......
...@@ -525,7 +525,7 @@ export default async function build(dir: string, conf = null): Promise<void> { ...@@ -525,7 +525,7 @@ export default async function build(dir: string, conf = null): Promise<void> {
console.warn( console.warn(
chalk.bold.yellow(`Warning: `) + chalk.bold.yellow(`Warning: `) +
chalk.yellow( chalk.yellow(
`You have opted-out of Automatic Static Optimization due to \`getInitialProps\` in \`pages/_app\`.` `You have opted-out of Automatic Static Optimization due to \`getInitialProps\` in \`pages/_app\`. This does not opt-out pages with \`getStaticProps\``
) )
) )
console.warn( console.warn(
......
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