-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring back indicator documentation with a note that the feature has b…
…een removed
- Loading branch information
1 parent
73a2bd6
commit a1a4af2
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
docs/api-reference/next.config.js/static-optimization-indicator.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
description: Optimized pages include an indicator to let you know if it's being statically optimized. You can opt-out of it here. | ||
--- | ||
|
||
# Static Optimization Indicator | ||
|
||
> **Note:** This indicator was removed in Next.js version 10.0.1. We recommend upgrading to the latest version of Next.js. | ||
When a page qualifies for [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md) we show an indicator to let you know. | ||
|
||
This is helpful since automatic static optimization can be very beneficial and knowing immediately in development if the page qualifies can be useful. | ||
|
||
In some cases this indicator might not be useful, like when working on electron applications. To remove it open `next.config.js` and disable the `autoPrerender` config in `devIndicators`: | ||
|
||
```js | ||
module.exports = { | ||
devIndicators: { | ||
autoPrerender: false, | ||
}, | ||
} | ||
``` |