Home > Net >  Simple app that shows pages depending on an API built with a static site framework
Simple app that shows pages depending on an API built with a static site framework

Time:04-01

I created a project with React, but now I'm thinking of SEO

My project is very simple, although it shows 3D Models using React Three Fiber

But it also shows pages that are defined depending on some videos obtained from Vimeo (using an API), making the site a little dynamic, since we don't previously know which pages will be shown

The question is, can this site be successfully built using Gatsby, as a Static Sites Framework, or do I have to use an SSR Framework like Vercel's Next, because of the pages that will be generated from an API

CodePudding user response:

Yes Gatsby is a good solution. If you realize in the future that you might need to be re-building the app a little more than you are comfortable with, then you can re-hydrate the browser on the users end to query data that you get from an api. This keeps the benefits of SSG (speed, robustness, and SEO), but adds some flexibility and dynamic nature to your application. You can set it up with the Gatsby docs (which are great for any problems you might have with Gatsby in the future). Extra info below: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-ssr

  • Related