enhance-dev / enhance-dev/fastify-plugin

Existing API route resolves to 404

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.