Tech
Sitemaps Are Free SEO — Here's the Vite Plugin That Generates Yours
The Problem
Every static site I've shipped has gone through the same ritual: build the site, then manually write a sitemap.xml, forget to update it when a route changes, and discover a month later that Google indexed half my pages. Sitemaps are boring, so they get done wrong.
The Solution
@3ni8ma/vite-plugin-sitemap generates sitemap.xml (and robots.txt , if you want it) as part of your Vite build. You declare your routes once, and every build emits a fresh, correct site...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to