Keep your next.js code cleaner by doing this simple rename #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

( route ) simple omits that segment from the url. Its children are still valid routes.

_route will omit the route and its children if you need a components folder

alext
Автор

Ah cool, so what you're saying is folders with (...) naming is for developer convenience to organize content without messing up routing, while the ones without (...) are for actual routing. Neat tip! 🔥

nagarajansubramani
Автор

Also allows to have custom layout for these pages

IvanRandomDude
Автор

This is a great tip if you have a lot of page routes and don't want to make your url longer.

curiouslycory
Автор

Thanks bro, you've saved me a tonns

EmmanuelOdii
Автор

Thanks! I love to organise folders but it wasnt woeking and now i know why! Yet very basic and simple bug hugh pain removing for me.

johndevnoza
Автор

What would be the alternative way if using the pages folder?

NdondoMicheal
Автор

Ahh, here it is 😂
That's quite cool, I need to try the app router soon, but it is not supported by T3 yet, isn't it?

Oshimani
Автор

i really like app router but the only thing annoyes me that if i want to use the full app as client side i have to use "use client" on top of every page.

ayushgogna
Автор

Wait.. do people really make a dedicated log out page?

martiananomaly
Автор

What file icon do you use on this video ?

putranugraha
Автор

does this folder naming work on windows?

pharmokan
Автор

This is one of the reasons why the next app route is so bad. Having to workaround for page.tsx matching is terrible design from Vercel part.

doreto