How to add layout to dynamic route?
How can i add layout to dynamic route $projectId? As I added it in settings page.

5 Replies
stormy-gold•11mo ago
just nest it under a layout as well?
variable-limeOP•11mo ago
i made this way

stormy-gold•11mo ago
hm why not just _layout.$projectId.tsx ?
variable-limeOP•11mo ago
where should i place this file?
stormy-gold•11mo ago
it totally depends what you want to do here
a layout file is typically used when you want to apply the same layout for multiple child routes
if you don't have that, just place the "layout" into the route file itself