is middleware strictly for server?
basically title ^- is the middleware basically meant for server functions/api routes?
eg. if i'm running with ssr: false, this is basically only gonna run on page load when the dev server serves the app right?
i'm using the clerk-solid package to integrate clerk and would love to find a way to avoid attaching my auth token on every request, but not sure if this is possible
2 Replies
onRequest
is triggering even without ssrOnly on initial request though right?
Basically the request that serves the app itself (as this needs a server).
Ie. Middleware only is useful w ssr false for doing things that needs to be done 1 time on server for the life of the app ?