next.js
06fb60a9 - Don't serve locale-prefixed API paths from the 404 route check

Commit
5 days ago
Don't serve locale-prefixed API paths from the 404 route check The route resolution rejects filesystem matches for API paths carrying a locale prefix, so the pre-404 filesystem check has to reject them too; otherwise /en/api/hello serves the API route where routing returns 404.
Author
Parents
Loading