Steps to Create Next JS Application
Step 1: Create a NextJS application using the following command
npx create-next-app my-app
Step2: Navigate to my-app folder using cd command
cd my-app
Step3: Run the following command to start development server
npm run dev
Project Structure:
The updated dependencies in package.json file will look like:
{
"dependencies": {
"next": "^13.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next-sitemap": "^3.2.0" // Added for dynamic sitemap
}
}
How to Create a Sitemap in Next.js 13?
The Sitemap is an XML file that notifies search engines like Google about the structure and content of the website. This would helps search engines to discover and index the pages efficiently which improve the website SEO (Search Engine Optimization).
Contact Us