Summary
Using the src directory is optional for Next.js projects, as stated in the
1
result. The static directory is also available, which is mapped to the /static route, as mentioned in the same result. This allows developers to store files that are not part of the pages directory, such as images, fonts, and other assets.
According to
See more results on Neeva
Summaries from the best pages on the web
Summary
Using the src directory is optional and covers the case where your company has this standard in place already.
Besides the pages directory Next.js has one other special directory called static , files of which were mapped to the /static route.
For
Blog - Next.js 9.1 | Next.js
nextjs.org
13 also introduces beta features like the app directory that works alongside the pages directory (stable) for incremental adoption. You can continue using ...
Getting Started | Next.js
nextjs.org
support for custom pages directory for long. It would have been better have a next.config.js to have pagesDir config support. I struggled to use nextjs with ...
[Solved] next.js [RFC] src directory
lifesaver.codes