does middleware run before server actions
Answered
Polar bear posted this in #help-forum
Original message was deleted.
10 Replies
Asian paper wasp
Server actions essentially automatically create a POST endpoint from an async function.
Without any more context or code, it is hard to tell what goes wrong there
Without any more context or code, it is hard to tell what goes wrong there
Asian paper wasp
It should runs before anything if I recall correctly
Yes, middleware runs before a request
Answer
@Polar bear whole point of middleware is to run before requests so you can manage them
including stuff like preload requests, image requsts
np
mark a soln if it solved your query
Original message was deleted
follow this :D
Original message was deleted
i would rename the post tbh since your second question is the question with the answer
awesome thanks :D