Prerender your website, especially for the meta tags part. This can be done with prerender-spa plugins, Puppeteer / JSDOM, web-scraping, or alike. Make sure it works even with JavaScript disabled.
But, yeah, I actually recommend Next.js with Vercel hosting, or full static generation for hosting elsewhere.
As for a third option, I don't know if Cloudflare can pre-cache meta tags on JavaScript-rendered, or SPA websites.
Wouldn't Next.js be a little overkill for a SPA? For example a landing page. I've been reading about Gatsby vs Next, but don't know which one would be more suitable for SPAs. My guess would be Gatsby since the website won't be loading dynamic content. What do you recommend?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Prerender your website, especially for the meta tags part. This can be done with prerender-spa plugins, Puppeteer / JSDOM, web-scraping, or alike. Make sure it works even with JavaScript disabled.
But, yeah, I actually recommend Next.js with Vercel hosting, or full static generation for hosting elsewhere.
As for a third option, I don't know if Cloudflare can pre-cache meta tags on JavaScript-rendered, or SPA websites.
Wouldn't Next.js be a little overkill for a SPA? For example a landing page. I've been reading about Gatsby vs Next, but don't know which one would be more suitable for SPAs. My guess would be Gatsby since the website won't be loading dynamic content. What do you recommend?