To optimize your Nuxt app for SEO you need do a couple simple things.
00:00 - Intro
01:29 - Create a Robots.Txt file
05:00 - Create a Sitemap.xml file
06:12 - Nuxt Advanced SEO
With a robots.txt file and a sitemap.xml file you will have the basic criterion you need to keep Google Search Console "happy" 😊!
The command line code I ran is below:
1) Create a robots.txt file:
npx nuxi@latest module add simple-robots
2) Create a sitemap.xml file:
npx nuxi@latest module add sitemap
3) Run a dev server:
npm run dev
As I mentioned in the video, if you have any questions or are running into any "weird red squiggly lines" please just ask!
4 июл 2024