3 ms·
There's a relatively large but finite number of possible inputs. This could theoretically be converted into a bunch of static files that fit on Netlify or GH Pa
by DoctorOW 5y ago
There's a relatively large but finite number of possible inputs. This could theoretically be converted into a bunch of static files that fit on Netlify or GH Pages.
- frosted-flakes 5y agoI tried something like this before with Netlify, but if it takes too long to upload, it will time out. In my case, we were converting the PokeAPI.co Rest API from a dynamic Python service to a static API that served simple JSON files, to cut costs. But there are so many Pokémon and so much associated data that Netlify couldn't handle it. We ended up going with Firebase, which seems to work pretty well. https://pokeapi.co https://pokeapi.co is a Rest and GraphQL API for Pokémon data, mostly used for educational purposes.
- DoctorOW 5y agoThat's interesting, did you give up on the static route or are you using Firebase's static hosting? I assume GraphQL cannot be static hosted.
- frosted-flakes 5y agoThe Rest API uses Firebase's static hosting with some small use of lambda functions for pagination. It worked fine on Netlify with partial data, but with the full dataset it refused to work, and support wasn't any help. The GraphQL API is a separate service that I believe makes use of Prisma and a DB. I wasn't involved with the GraphQL API so I don't know the details.