🚨 Nuxt 3 Production Issue: useFetch Params Lost in Server API Route
nuxt4☁️deploynitro
Hello everyone! I'm running into a baffling issue where query parameters sent via useFetch are lost when the application is deployed to production (NO SSR), but work perfectly fine in my local environment.
The Problem When using useFetch to call a local Nuxt Server API route, the params (or query) object is correctly serialized and included in the network request on the client side. However, inside the server handler, getQuery(event) returns an object where all custom parameters are null or missing.
Client-Side Component Code (Calling the API) I am using the params option on the client side to pass the query string: