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
fascinating-indigo•13mo ago
just nest it under a layout as well?
harsh-harlequinOP•13mo ago
i made this way

fascinating-indigo•13mo ago
hm why not just _layout.$projectId.tsx ?
harsh-harlequinOP•13mo ago
where should i place this file?
fascinating-indigo•13mo 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