set_secret
Set a project secret to be injected as a process.env variable in functions. Overwrites existing keys; use before deploy and require with secrets.require.
Instructions
Set a project secret (e.g. STRIPE_SECRET_KEY). Values are write-only and injected as process.env variables in functions. Setting an existing key overwrites it. Use this before deploy, then declare the key with secrets.require.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID | |
| key | Yes | Secret key (uppercase alphanumeric + underscores, e.g. 'STRIPE_SECRET_KEY') | |
| value | Yes | Secret value (will be injected as process.env in functions) |