Closed thegentlemanphysicist closed 3 years ago
React env variable docs (check out the warning section) https://create-react-app.dev/docs/adding-custom-environment-variables/
Discussion in stack overflow: https://stackoverflow.com/questions/46838015/using-api-keys-in-a-react-app/46839021#46839021
Strapi appears to have a configuration that might works for us. https://strapi.io/blog/webhooks
https://strapi.io/documentation/developer-docs/latest/guides/external-data.html#content-type-settings This may be more relevant
Resolved. Strapi can handle this. Moreover the eventbrite API has some webhook capabilities. We can leverage this to load the eventbrite content directly into strapi, improving load time of these features relative to the BCDevExchange site.
Reviewed issue - closing ticket.
After digging into the eventbrite API and the BCDevExchange implementation, it's become clear that the integrating the API in a React app will not be completely straightforward. The query to the API requires a bearer token, if this is added to the react app ENV, it will be exposed to any user of the site.
Suggested approaches, research the following: