Skip to content

Commit

Permalink
docs: Fix typo on strategy for next/script. (#51189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydouglas committed Jun 12, 2023
1 parent 4ae8bc7 commit 3b2ee1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/02-app/02-api-reference/01-components/script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Examples of scripts that do not need to load immediately and can be fetched with
Scripts that use the `worker` strategy are off-loaded to a web worker in order to free up the main thread and ensure that only critical, first-party resources are processed on it. While this strategy can be used for any script, it is an advanced use case that is not guaranteed to support all third-party scripts.

To use `worker` as a stratgy, the `nextScriptWorkers` flag must be enabled in `next.config.js`:
To use `worker` as a strategy, the `nextScriptWorkers` flag must be enabled in `next.config.js`:

```js filename="next.config.js"
module.exports = {
Expand Down

0 comments on commit 3b2ee1e

Please sign in to comment.