Skip to content

Commit

Permalink
Update auto export opt-out warning and err.sh (#11801)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Apr 10, 2020
1 parent 7d6fbe7 commit 0648c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errors/opt-out-auto-static-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

Expand Down
2 changes: 1 addition & 1 deletion packages/next/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export default async function build(dir: string, conf = null): Promise<void> {
console.warn(
chalk.bold.yellow(`Warning: `) +
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(
Expand Down

0 comments on commit 0648c35

Please sign in to comment.