Next.js Discord

Discord Forum

Server actions POST requests to wrong URL

Unanswered
American posted this in #help-forum
Open in Discord
AmericanOP
Hi!

I have an api route: /api/chat (used for ai package with useChat).

I keep seeing data from other parts of my app being posted to this route. Data which I only post to the backend via server actions. Can this happen?

/api/chat is only mentioned a single time in my codebase, and that's in the useChat function.

next: 15.1.5
ai: 4.0.36

0 Replies