Next.js Discord

Discord Forum

Naming convention for files/directories in Nextjs 14

Answered
Ghost ant posted this in #help-forum
Open in Discord
Ghost antOP
app/profile/[profileID]/page.tsx
I am wondering if I am following the convention here, do you suggest another approach or to stick to what I doing?
Answered by B33fb0n3
if you would ask me personally, I would rename the dynamic part to only [id]. Because I know it must be a profile Id, because I a going though /profile/ @Ghost ant
View full answer

5 Replies

if you would ask me personally, I would rename the dynamic part to only [id]. Because I know it must be a profile Id, because I a going though /profile/ @Ghost ant
Answer
@Ghost ant solved?
@B33fb0n3 <@685990756477173793> solved?
Ghost antOP
I used ‘profile/[id]/page.tsx’
perfekt! 👍