Environment Variables in Saasio
Environment variables are a secure and efficient way to store sensitive information like API keys, authentication credentials, and other configuration details. In Saasio, you can use environment variables to protect data such as API keys for third-party services (like Google or GitHub), or other credentials, ensuring they are encrypted and securely managed.
What are Environment Variables?
Environment variables store data that your application uses but should not be exposed publicly, such as:
- API keys
- Google or GitHub authentication credentials
- Other secret keys or configuration settings
By using environment variables, you can keep sensitive data secure while providing your app with the information it needs to function.
How to Create an Environment Variable
To create an environment variable in Saasio, follow these steps:
Navigate to the Data Tab:
- Open the editor in your Saasio project.
- Click on the Data tab at the top of your workspace.
Select Environment Variables:
- Under the Data tab, click on the Environment Variables tab.
Create a New Environment Variable:
- Click the button to create a new environment variable.
- Provide a name for the variable.
- Enter the value of the variable.
- Saasio automatically encrypts the variable for added security.
Why Use Environment Variables?
1. Security:
Environment variables are encrypted, ensuring that sensitive information like API keys and authentication credentials are not exposed in your codebase or frontend.
2. Easy Management:
By storing variables centrally, you can easily update or change keys without modifying your application code, reducing the risk of accidental exposure.
3. Scalability:
As your application grows, managing keys and credentials in environment variables becomes increasingly important for maintaining secure and flexible configurations across environments.