Bindings file
The bindings file names each secret and Integration a Startup reads, per environment; values live in the platform, never in the repository.
| Property | Value |
|---|---|
| Path | env.ts |
| Holds | Setting |
| Kind | file |
| Leaders | db-first, git-first |
| Team | Engineering Team |
| Written by | Change.merge |
| Compiled by | SoftwareBuilder |
Example
env.ts in a Startup repository.
import { env, integration, secret } from 'startup-builder'
export default env({
RATES_API_KEY: secret(),
github: integration('github', { scope: 'startup' }),
})Exports
| Export | Kind | Type |
|---|---|---|
default | default | Env |
Signature
env(bindings: Record<string, Secret | Integration>): EnvGenerates
SoftwareBuilder compiles it into these records, Verbs and routes.
| Kind | What |
|---|---|
| Records | Secret, Integration, Setting |
| Verbs | None. |
| Routes | None. |