KindeK
Kinde16mo ago
Amateur

Protect all routes except some public ones

Is there any workaround for this, I want to protect all routes but exclude the main '/', i am using layout for route protection but it is making all my pages dynamically rendered, i want them to be static, I tried regex but it didn't work, i could protect every route but couldn't add excluded routes.
CleanShot_2024-08-22_at_9_.56.322x.png
Was this page helpful?