未验证 提交 0648c355 编写于 作者: J JJ Kasper 提交者: GitHub

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

上级 7d6fbe7f
......@@ -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
......
......@@ -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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册