Anyone have use case to implement middleware to protect dashboard & login page?
I try to implement middleware on nextjs with api to check current session, but it's not gonna work.
Server side rendering is a huge pain. I highly recommend sticking with client side code if possible
You can check this repo for SSR: https://github.com/Meldiron/appwrite-ssr-next-js
But keep in mind the cookie explanation, as you won't be able to get the appwrite cookie in your middleware if that isn't solved
Recommended threads
- 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...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...