Skip to content

chore: scaffold from seamless-templates v0.5.0 - #143

Merged
Bccorb merged 1 commit into
mainfrom
chore/templates-ref-v0.5.0
Jul 28, 2026
Merged

chore: scaffold from seamless-templates v0.5.0#143
Bccorb merged 1 commit into
mainfrom
chore/templates-ref-v0.5.0

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Bumps SEAMLESS_TEMPLATES_REF from v0.4.0 to v0.5.0, the release that carries the express
starter's DATABASE_URL and TLS support (fells-code/seamless-templates#22).

This is the step that makes #141 take effect. The CLI already computed the managed connection string,
but applyTemplateEnv only writes keys the manifest declares, and v0.4.0 did not declare
{{databaseUrl}}, so nothing was written.

Verified against the published tag

Not a fixture: I ran the real openTemplateSource at v0.5.0, copied the express starter into temp
directories, and applied applyTemplateEnv with both scaffold contexts.

  • The manifest declares DATABASE_URL: {{databaseUrl}}.
  • A managed context writes
    DATABASE_URL=postgres://USER:PASSWORD@db.example.com:5432/tenant?sslmode=require.
  • A local context writes DATABASE_URL=, so the starter falls back to its discrete DB_* values, as
    the compose stack needs.
  • src/lib/databaseUrl.ts is present in the copied template.

That empty-local case was the one that could have broken the existing flow: an unresolved placeholder
throws, so a missing databaseUrl on the local path would have failed every local scaffold.

npm run build and npm test pass (691 passed, 4 skipped), coverage unchanged at 99.37% lines.

Still open

cliMin in the templates manifest is still 0.10.0. Raising it needs another templates release and
buys little, since the CLI only ever fetches the ref it pins. Worth folding into the next templates
change rather than releasing for it alone.

The TLS certificate question stands: if a tenant's Postgres presents a certificate that does not chain
to a public CA, managed connections fail until DB_SSL_REJECT_UNAUTHORIZED=false is set. First live
trial will tell us, and if it does not chain we should ship the CA rather than flip the default.

v0.5.0 declares the {{databaseUrl}} placeholder and ships the express starter's
DATABASE_URL and TLS support, so bumping the ref is what makes the managed
bundled database wiring take effect.

Verified against the published tag rather than a fixture: the manifest declares
DATABASE_URL, a managed context writes the full placeholder connection string
into api/.env, a local context writes an empty value so the starter falls back
to its DB_* variables, and src/lib/databaseUrl.ts is present in the copied
template.
@Bccorb
Bccorb merged commit d51880d into main Jul 28, 2026
1 of 2 checks passed
@Bccorb
Bccorb deleted the chore/templates-ref-v0.5.0 branch July 28, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant