TanStackT
TanStack10mo ago
6 replies
colossal-harlequin

Help regarding directory based routing

I have this weird case where I need two layouts for protected and public routes

public -> /login|forget-password (those share a layout)
protected -> /dashboard|users (those share a layout)

As you can see, both of those don't have a prefix I can depend on.

I noticed that pathlessLayout might fix this but I can create only one of it ?

I am a bit confused on how to achieve this
Was this page helpful?