Next.js Discord

Discord Forum

Next.js v:14.0.3 routing

Answered
Saif-A-l-i posted this in #help-forum
Open in Discord
Good evening everyone,

I'm Saif Ali, and I'm currently working on a blog web app using Next.js version 14.0.3. I'd like to share my routing structure with you and get some feedback because i am getting error.
Here's the directory structure:
./src
    /app
    -page.js // Home Page
    -/blog
    --page.js // All blogs
    --[singleBlog] //folder
    ---page.js // Single Blog Page
    --/categories
    ---page.js // All Categories
    ---[category] //folder
    ----page.js // Single Category blogs
    ----/[singleCategoryBlog] //folder
    -----page.js // Single Category / single-blog
    --/tags
    ---page.js //All tags
    ---[tag] //folder
    ----page.js // Single Tag blogs
    -----/[singleTagBlog] //folder
    ------page.js // Single Tag / single-blog
    -//other routes

I appreciate any suggestions or advice you might have regarding this structure. Thank you!
Answered by Saif-A-l-i
Sorry, Sif, for wasting your time. It's working now. I just needed to restart my app.
View full answer

3 Replies

@Saif-A-l-i would you also share the full error?
Sorry, Sif, for wasting your time. It's working now. I just needed to restart my app.
Answer
@Saif-A-l-i Sorry, Sif, for wasting your time. It's working now. I just needed to restart my app.
Oh ok lol. Please mark my message as solution, to close the post. Thanks!