T
TanStack4mo ago
national-gold

Routes conflicting when using "@tanstack/react-start/api"

I have a dynamic endpoint - /api/$workspaceSlug/$projectSlug And a static endpoint - /api/ai/chat When I make a request to /api/ai/chat, the request is going to /api/$workspaceSlug/$projectSlug. It thinks* ai is the workspace slug and chat is the project slug, so it ends up returning the wrong response. This only started when I move from @tanstack/start to @tanstack/react-start/api. I always have to restart the server when it does that, then it works fine and starts acting up again after one or two requests. It's really frustating.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?