@zerct/zerct 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,6 +20,10 @@ on `0.0.0.0:$PORT` and expose the configured health endpoint.
20
20
  From a full-stack repo root, the same deploy command discovers nested
21
21
  `zerct.toml` files and deploys the whole workspace in one command.
22
22
 
23
+ Managed Postgres apps receive `DATABASE_URL`, `ZERCT_DATABASE_URL`, and
24
+ `ZERCT_DATABASE_CONNECTION_LIMIT`. Use that limit as the max size for your
25
+ database pool.
26
+
23
27
  Agents can also inspect API capabilities, account identity, usage, account
24
28
  activity, apps, complete app overviews, deploys, builds, app/deploy/build logs,
25
29
  env metadata, custom domains, domain verification, and billing portal links
package/bin/zerct.js CHANGED
@@ -4,7 +4,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSy
4
4
  import { homedir } from 'node:os'
5
5
  import path from 'node:path'
6
6
 
7
- const VERSION = '0.1.11'
7
+ const VERSION = '0.1.12'
8
8
  const DEFAULT_API_URL = 'https://api.zerct.com'
9
9
  const ARCHIVE_LIMIT_BYTES = 48 * 1024 * 1024
10
10
  const DEFAULT_DEPLOY_WAIT_TIMEOUT_SECONDS = 900
@@ -494,9 +494,7 @@ async function deploy(projectDir, cli) {
494
494
  }
495
495
 
496
496
  if (cli.wait) {
497
- for (const result of results) {
498
- result.finalBuild = await waitForBuild(cli, token, result.response.build_job.id)
499
- }
497
+ await waitForWorkspaceBuilds(cli, token, results)
500
498
  }
501
499
 
502
500
  printWorkspaceDeployResults(projectDir, results, cli)
@@ -599,6 +597,12 @@ function printWorkspaceDeployResults(projectDir, results, cli) {
599
597
  }
600
598
  }
601
599
 
600
+ async function waitForWorkspaceBuilds(cli, token, results) {
601
+ await Promise.all(results.map(async (result) => {
602
+ result.finalBuild = await waitForBuild(cli, token, result.response.build_job.id)
603
+ }))
604
+ }
605
+
602
606
  async function waitForBuild(cli, token, buildId) {
603
607
  const deadline = Date.now() + cli.waitTimeoutSeconds * 1000
604
608
  let lastStatus = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerct/zerct",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Deploy Rust backends and static frontends to Zerct.",
5
5
  "type": "module",
6
6
  "bin": {