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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...