jermbo / SampleAPIs

A simple, no fuss, no mess, no auth playground for learning RESTful or GraphQL APIs.
https://sampleapis.com/
MIT License
214 stars 54 forks source link

Update to Next.js #124

Closed jermbo closed 3 years ago

jermbo commented 3 years ago

Now that this system is running on React, we need to convert to as SSR platform. Next.js seems to be a popular option.

thedamian commented 3 years ago

Quesitons: 1) Why 2) No really...Why?

jermbo commented 3 years ago

Static site generation solves a couple major issues with the current version. SEO and Navigation. When trying to go to any api details page directly will result in a 404 error page. For example, go directly to this link, https://sampleapis.com/api-list/avatar. I think it would be very useful to have the ability to share a direct link versus going through the home page, then api list, then specific api.

Also, I need a playground to learn. Next might be something I use in an upcoming project. Figured its better to learn in a safe environment rather a high pressure client project.

thedamian commented 3 years ago

OH....and OH! Ok. Approved!

thedamian commented 3 years ago

DENIED!!!!! DENIED!!! :kissing: Ok.... well at least we have the react routing taking care of (all 404's respond with index.html which allows https://sampleapis.com/api-list/avatar to work!