How do you store secrets, credentials or private data?

.env is a secure environment config section in your projects, useful for storing API keys and app credentials. Only invited collaborators are able to see the contents of your .env file. So anonymous viewers or logged-in users who haven’t been invited to your project can’t see them. When remixing an app the values are cleared so they’re not copied across.

In addition, creating a folder called .data is a safe place to store your data files. This folder isn’t copied across when a project is remixed.

Here's how to use the .env file:



FAQs Using Glitch How To Getting Started