-
Notifications
You must be signed in to change notification settings - Fork 86
[Bug]: Middleware does not run with netlify-cli #1824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey. If your middleware is in |
My middleware was in the |
Have you manually installed the runtime? Which version is it showing as using? |
4.29.2. If manually installing the runtime means |
One thing to point out is that the middleware runs when deployed via Netlify, even though the middleware on the deployed site is in the |
Everything seems to work fine with NextJS v13.0.0 and |
Summary
NextJS version 13
I'm running my site locally with netlify-cli. I have middleware that runs perfectly fine with
next dev
, but does not even seem to exist when runningnetlify dev
.Steps to reproduce
netlify dev
A link to a reproduction repository
No response
Next Runtime version
4.29.2
More information about your build
netlify.toml
)What OS are you using?
Mac OS
Your netlify.toml file
`netlify.toml`
# Paste content of your `netlify.toml` file here
Your public/_redirects file
`_redirects`
# Paste content of your `_redirects` file here
Your
next.config.js
file`next.config.js`
# Paste content of your `next.config.js` file here. Check there is no private info in there.
Builds logs (or link to your logs)
Build logs
Function logs
Function logs
.next JSON files
generated .next JSON files
The text was updated successfully, but these errors were encountered: