Skip to content

Commit

Permalink
Fix negative lookahead example in middleware.md (#42320)
Browse files Browse the repository at this point in the history
If you don't prefix `static` with `_next`, none of the JS will be able
to load.

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
meenie committed Nov 2, 2022
1 parent cd982d5 commit a482f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-features/middleware.md
Expand Up @@ -95,10 +95,10 @@ export const config = {
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - static (static files)
* - _next/static (static files)
* - favicon.ico (favicon file)
*/
'/((?!api|static|favicon.ico).*)',
'/((?!api|_next/static|favicon.ico).*)',
],
}
```
Expand Down

0 comments on commit a482f06

Please sign in to comment.