#RouteGuard with FileRoutes

8 messages · Page 1 of 1 (latest)

honest sigil
#

How can I add a routeGuard that allows every page to be protected except few routes like '/login'? I would like to maintain file based routing without having to manually add every route. Thanks!

honest sigil
honest sigil
#

Hey @honest sigil ! I checked this out already and got more confused how solid-start is structured. Why do I need to have protectedRoutes in my server code? Am I still using SSR even when it's off?

#

I started a bug issue on github about this just a bit ago

#

For now, I could only switch to manually placing routes in RouteGuard vs unprotected

honest sigil
#

But I don't know exactly how Solid-Start is structured and it is a bit... interesting, that this works in CSR mode tbh

honest sigil
#

Interesting that CSR is still being pushed by a server