Yarn is used as the package manager in this template, but you can use npm (or any other package manager) if you need to as all dependencies are included in the package.json
file.
and their dependencies.
dev
: Run the development serverprebuild
: Run jest testsbuild
: Build the applicationpostbuild
: Run next-sitemap to generate sitemap and robots.txtstart
: Run the production serverlint
: Run ESLintexport
: Export the application to static HTMLtest
: Run Jest teststest:ci
: Run Jest tests in CI mode__tests__
folder is used for Jest tests.components
folder is used for components in the application.lib
folder is used for utility functions and other code that is not a component (including, but not limited to, methods for updating your database, constant variables, middleware, etc.).pages
folder is used for pages in the application.pages/api
folder is used for API routes.public
folder is used for static assets that are not imported in the application.styles
folder is used for global styles and style modules.util
folder is used for utility functions and other code that is not a component.All necessary configuration files are included in the template and can be modified as needed.