enhance-dev / enhance-dev/fastify-plugin
Existing API route resolves to 404
Open
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
If I use the fastify-plugin, in some cases API routes resolve to a 404 while the route exists.
If the route is called before rendering a page (example: browsing to / and having a /api/index.mjs route), it works fine.
It seems to fail when used to post something from a form (like in the form counter example from the docs) and subsequently also fails if the route is called directly from xhr.
Everything works fine when I use arc sandbox.
Contributor guide
Assessment
This issue has not been assessed yet.