Skip to content
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

Is middleware supported? #59

Closed
khuezy opened this issue Nov 24, 2022 · 2 comments
Closed

Is middleware supported? #59

khuezy opened this issue Nov 24, 2022 · 2 comments

Comments

@khuezy
Copy link

khuezy commented Nov 24, 2022

I see a middleware checkmark in the list of features, but when I deploy the example: https://github.com/vercel/next.js/tree/canary/examples/middleware, it doesn't actually work.

Edit: it does work when you reload the browser, but using <Link />, it does not work.

@sladg
Copy link
Owner

sladg commented Dec 5, 2022

Hey! Yes, we tested middleware.ts on Next@12.3, and redirects worked fine, moreover, redirects also work by specifying them in next.config.js. Can you share your expected result compared to the current state? <Link/> is not used in middleware.ts, so I'm not 100% sure where to look.

@khuezy
Copy link
Author

khuezy commented Dec 5, 2022

Hi thanks for replying, redirect is working for me now. I must have messed up somewhere.

@khuezy khuezy closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants