Pages can also be added under
src/pages as an alternative to the root
src directory is very common in many apps and Next.js supports it by default.
src/pageswill be ignored if
pagesis present in the root directory
tsconfig.json, as well as environment variables, should be inside the root directory, moving them to
srcwon't work. Same goes for the
For more information on what to do next, we recommend the following sections: