Configuration
The options the AntelopeJS Cloud module reads from antelope.config.ts.
The module reads five options from the project's antelope.config.ts.
modules: {
"antelope-cloud": {
source: { type: "local", path: "../dms-antelope-cloud" },
config: {
apiUrl: "https://api.antelopejs.cloud",
secretKey: process.env.ANTELOPE_CLOUD_SECRET_KEY,
},
},
}
| Option | Default | What it does |
|---|---|---|
apiUrl | https://api.antelopejs.cloud | Base URL of the AntelopeJS Cloud API. The Connection page asks GET <apiUrl>/api/cloud/health, and the sign-in and project reads go there too. |
secretKey | none | The secret the stored AntelopeJS Cloud tokens are encrypted with, at least 32 characters. The module derives an AES-256-GCM key from it with HKDF-SHA256. Changing it makes the stored tokens unreadable: each workspace then signs in again. Without it the module does not run, as Where the module runs explains. |
repositoryPath | the folder the process runs in | Root of the project's git work tree. Publishing commits, tags and pushes it, a promotion pushes commits from it to origin's env/<name> branches, and the Overview, First-run setup and Connection pages show its origin and branch. A relative path resolves against the folder the process runs in. |
promotionFollow | { intervalMs: 5000, limitMs: 600000 } | How often and for how long, in milliseconds, the module reads an environment after a promotion to it, so that open pages show its deployment. |
managed | none | { token, projectId }: what an AntelopeJS Cloud development environment gives this instance. Both set, the module is connected to that project from its first start. Both left out or empty, as unset variables read, the owner signs in with a device code. |
Validation
The module refuses to start, with an error that names the option, unless:
apiUrlis an absolutehttporhttpsURL.- A
secretKeythat is set is a string of at least 32 characters. - The
promotionFollowvalues are positive whole numbers. managedhas both itstokenand itsprojectId, or neither.