Store variables from a local .env file
set_env_from_fileReads named variables from a .env file and stores them for the application so values bypass the conversation; only listed names are sent. Redeploy to apply them.
Instructions
Read the named variables out of a .env file in the project directory and store them for the application, so the values go from the file to Antideploy and never through this conversation. Only the names you list are sent. Names the platform fills in itself (the database, storage, sign-in and email variables, the application's own address and generated signing secrets) are refused with the reason, and so are empty values and template placeholders like your-key-here. The result names what was stored and what was skipped, never a value. Redeploy afterwards for the running app to pick them up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A .env file inside the project directory. Default .env. | |
| names | Yes | The variable names to store, such as STRIPE_SECRET_KEY. | |
| directory | No | The project folder. Defaults to this server's working directory. |