In order to protect the security of API keys, all external API calls should be made by the Express server backend.
Move the environment variable REACT_APP_PEXELS_API_KEY into the environment variables for the backend app packages/backend and rename it PEXELS_API_KEY.
Create an endpoint that calls the Pexels API and returns the array of images that's returned or an error.
In order to protect the security of API keys, all external API calls should be made by the Express server backend.
Move the environment variable
REACT_APP_PEXELS_API_KEY
into the environment variables for the backend apppackages/backend
and rename itPEXELS_API_KEY
.Create an endpoint that calls the Pexels API and returns the array of images that's returned or an error.