thombruce / TheDefinitiveEdition

https://thedefinitiveedition.thombruce.com/
GNU General Public License v3.0
0 stars 0 forks source link

[Feature]: Setup pretty API requests using Netlify functions with _redirects #3

Closed thombruce closed 1 year ago

thombruce commented 1 year ago

Feature request

We're using Netlify functions to proxy requests to the IGDB API.

Recommend setting up a _redirects or netlify.toml file to pretty up the API calls on The Definitive Edition. See: https://www.netlify.com/blog/2021/12/13/setting-up-redirects-on-netlify/#main

api/ is already generated by Nuxt. Recommend redirects that use a igdb/ route instead. Or even just "gdb" for "games database"? Or server/ or data/? Or reconfigure Nuxt so that it doesn't generate the api/ dir and do use that.

Code of Conduct

thombruce commented 1 year ago

We're now using Nuxt's native support for server/api and /api routes instead, and have migrated to Vercel.