---
title: "Discussion on \"How File-System Based Routing Works in Next.js\" | Hashnode"
description: "Discussion on \"How File-System Based Routing Works in Next.js\". Next.js has file-system based routing built-in. You don't have to explicitly define the path in the router. It's as easy as adding a file inside the folder and you are done. There are multiple ways you can define a path using the file structure. Anyt..."
url: "https://hashnode.com/posts/how-file-system-based-routing-works-in-nextjs/5fa5a16654cc5b4ad931e253"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How File-System Based Routing Works in Next.js](https://rambling.umesh.dev/how-file-system-based-routing-works-in-nextjs?utm_source=hashnode&utm_medium=feed)

Next.js has file-system based routing built-in. You don't have to explicitly define the path in the router. It's as easy as adding a file inside the folder and you are done. There are multiple ways you can define a path using the file structure. Anyt...

Nov 6, 2020 · 4 min read · rambling.umesh.dev  
Updated Sep 3, 2021  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Umesh Yadav](https://hashnode.com/@imumesh18)

@imumesh18 · Mumbai, IN

  
[View profile](https://hashnode.com/@imumesh18)

Software Engineer | Introverted

My code is a liability⚡️Learning one thing at a time⚡️ ✍️ @ blog.umesh.wtf and freecodecamp.org/news

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
