This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.
This project already includes:
metaSEO tags inindex.html- Google verification token in
index.html - Google verification HTML file in
public/googled1a543d80e38cfa9.html robots.txtinpublic/robots.txtsitemap.xmlinpublic/sitemap.xml
- Deploy the latest build to your production domain.
- Open Google Search Console and add your property.
- Prefer Domain property (DNS verification) if you manage DNS. Otherwise use URL prefix.
- For URL prefix verification, use one of these methods:
- HTML file: keep
public/googled1a543d80e38cfa9.htmldeployed and accessible. - HTML tag: keep
<meta name="google-site-verification" ...>inindex.html.
- HTML file: keep
- Verify the file works by opening:
https://code-line-formatter.vercel.app/googled1a543d80e38cfa9.html
- In Search Console, go to Sitemaps and submit:
https://code-line-formatter.vercel.app/sitemap.xml
- Use URL Inspection and request indexing for key pages (home and top tools).
- Check Coverage/Pages and Enhancements after 24-72 hours for crawl or indexing issues.
- Keep canonical URLs, robots, and sitemap entries consistent with your live routes.
- Set up Google Analytics 4 and link GA4 with Search Console.
- Monitor Core Web Vitals in Search Console and improve low-scoring pages.
Sitemap is now generated from route entries in src/utils/seo.js.
- Run manually:
npm run sitemap:generate - Runs automatically before every production build via
prebuild - Output files:
public/sitemap.xml(primary URL sitemap for Search Console submission)public/sitemap-index.xml(optional sitemap index)
When adding or removing routes, update SEO_BY_PATH and regenerate/deploy.