To provide secret keys and some further required configuration details, environment variables are added to the service.
During the development process you may have used a creds.json file which contained sensitive information. For the application to perform correctly, this information is required in the production environment. Luckily, Render provides a couple of ways to give your application access to these details without exposing them to the public.
This allows the addition of individual environment variables.
This file will be available ‘behind the scenes’, it is not accessible to the public so the security and secrecy of its content are maintained.
This also acts as a nice backup location of production environment variables should your workspace be lost without another external backup of the creds.json file.
Scroll down and click “Advanced”

Click “Add Environment Variable”

Add the following environment variables
| Key | Value |
|---|---|
| PORT | 8000 |
| PYTHON_VERSION | 3.10.7 |

The PORT value is required for the Python mock terminal program - do not change it!
If your project does not require a creds.json file, skip to the next page.
Open the creds.json file in your IDE and copy its entire contents.
Back in Render, click “Add Secret File”

Paste in the copied text to the File contents text area input and ensure the Filename is creds.json. For security reasons, some of the info has been redacted from the image, but the entire copied content has been pasted in.

Make sure to click "Save" when done.
The final option is whether to Auto-Deploy. The two options are explained in the following page.