SunTzu
Server Watchers
Is it possible similar to how you have the server running with NodeJS to have some code on the server side waiting for sockets/data etc. My intention is on the server side, is to listen to Supabase table Realtime, and when data is inserted in, on the server side then do something about it.
1 replies
Call Middleware dynamically
I know how middlewares work by setting them in the
definePageMeta
. However is it possible to call a middleware file check based on a javascript event changing?
For example a project environment within a user has changed from project A to project B. Is it possible that in the change there via JavaScript, that I can then call the middleware file so that it does it's checks?1 replies