Unverified Commit a482f068 authored by Cody Lundquist's avatar Cody Lundquist Committed by GitHub

Fix negative lookahead example in middleware.md (#42320)

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)
parent cd982d50
......@@ -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).*)',
],
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment