client only routes
Hey all, I am running into issues with ssr enabled again.
I am trying to prerender my marketing pages, and then keep everything else that requires auth as client only.
I tried using
so now those routes work for client side navigation, but if I refresh the page on any of those routes I get a 404
4 Replies
Doing this in the route.tsx should work (filerouting)
I was able to get something working like this but now I am running into a new issue lol
'./lib/account-context' is a context provider
and it looks like the provider code isn't running
or you can create a layout to wrap all your authenticated routes so you don't have to do this everywhere like
oh thanks! that works other than the initial 404 flicker
that makes context work too
I wrapped my 404 page content in that too and now it just flickers without showing page not found lol
man, I was overcomplicating things