Set up the configuration

First, we will primarily make the configuration for the relay-compiler, this will help us to not have to include in our package.json the commands and instead be something more general.

This next config, adds our plugin of babel to our configurations, thus avoiding the imminent problem of not being able to use graphql in our code.

Here we modify our script for start, build and test, to instead use the default react-scripts to use the react-app-rewired one, with the objective that the configurations we did, actually are reflected

Relay environment

For the most basic apps, the only aspect to be modified will be the URL where our GraphQL endpoint will be. Perhaps in more advanced scenarios, it will be needed to modify the store used.