⊗jsnxPmRtHR 25 of 57 menu

Private Folders in NextJS

By default, NextJS generates routes from all folders nested in the app folder. Sometimes, however, we need to create a private folder within the app folder that will not participate in routing.

To create such a folder, its name should start with an underscore. In this case, NextJS will ignore its contents.

Create a private folder. Place the page.jsx file inside it. Make sure you cannot access this file via the address bar.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline