Comment by tmzt
1 month ago
I built a MIT-licensed vite plugin (deadsimpleseo.github.io) to help with SEO for developers of React apps.
It bundles and executes a static HTML pipeline in a node vm executing within the vite process, then outputs that to a folder with an index.html for each of the .md and .tsx in your seo source folder. The result does not rely on javascript or fetching content to render, it's static HTML and there's no rehydration step.
This allows it to reuse your main app layout, headers, footers, etc.
I built it for a one page tool where I wanted crawlable links in the footer served from a standard nginx setup.
No comments yet
Contribute on Hacker News ↗