When server actions are called, they manifest as a POST request from the user’s current route. I’m trying to get information about the function name and params in middleware
export default async function middleware(request: NextRequest) {
console.log('request', request)
}
When I inspect request
, I find no references to the function name or the params passed, but i’m only crudely inspecting and haven’t ruled out serialization.
In short, how can I see a server action’s function name and params in middleware? I definitely can see the server action requests come through, and their associated method/route..but I’m not seeing any details on the function name and params themselves. Any help greatly appreciated!