Hi @Meldiron ,
I would like to limit access to specific pages, without loading the content of the pages before checking user's permissions. As I am new to NextJS I am wondering if middleware is the way to do it. But what I read let me think it is.
So to begin with I tried to install the demo of https://next-js.ssr.almostapps.eu/, as you suggested in another thread.
But I ran into several issues.
1# - It looks like your demo page is running into a certificate issue (I let you check your browser console when you login and fetch client session).
2# - I dev on localhost, using appwrite cloud endpoint. It looks like the only 2 options here is to modify my hostname file OR selfhost appwrite.
Do you guys at AppWrite have any plan to add a "middleware" easy to use feature soon ? 🙂
Recommended threads
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...
- [Sites] Deployment finished but site is ...
The deployment finished and is active but the site shows timeout error.
- Does Appwrite allow SSE ?
i'm trying to setup a slack bot on my site. Your deployed SSE endpoint is returning a non‑SSE response …and the browser immediately closes the connection. read...