Handling requests with Gatsby
Gatsby Functions provides an Express-like architecture that simplifies building Node.js APIs.
So, Gatsby Functions can use the
ClerkExpressRequireAuth middlewares from the Clerk Node SDK as shown below.
For more information on how to use Express middlewares in Gatsby refer to the Gatsby official documentation.