Write .well-known/source into the build #141

Merged
jcoffey-dev merged 1 commits from feat/well-known-source into main 2026-10-29 05:31:11 +00:00
Owner

The console writes .well-known/source (https://coffeylabs.org/specs/well-known-source/) into dist/ when the build is given its commit in INBUXA_REVISION: name, version, license, repository, revision.

  • docker/nginx.conf serves that path exactly, as JSON with no-cache and open CORS; a build without it answers 404 instead of falling through to the app.
  • The Dockerfile takes INBUXA_REVISION as a build arg; both image builds pass the commit.
  • Checked: unit tests; typecheck, lint, i18n:check, full tests (951) and build; the image built with a revision serves the document (GET/HEAD 200), built without one answers 404.

Production builds the console on its host, not from this image, so the deploy there passes the commit and its nginx gets the same location; I'll do that with the deploy.

The console writes `.well-known/source` (https://coffeylabs.org/specs/well-known-source/) into `dist/` when the build is given its commit in `INBUXA_REVISION`: name, version, license, repository, revision. - `docker/nginx.conf` serves that path exactly, as JSON with `no-cache` and open CORS; a build without it answers 404 instead of falling through to the app. - The Dockerfile takes `INBUXA_REVISION` as a build arg; both image builds pass the commit. - Checked: unit tests; typecheck, lint, i18n:check, full tests (951) and build; the image built with a revision serves the document (GET/HEAD 200), built without one answers 404. Production builds the console on its host, not from this image, so the deploy there passes the commit and its nginx gets the same location; I'll do that with the deploy.
jcoffey-dev added 1 commit 2026-10-29 04:58:03 +00:00
Write .well-known/source into the build
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 18s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 58s
991912ef4f
The console's public repository and the commit it was built from, in
the form https://coffeylabs.org/specs/well-known-source/ defines. The
commit comes from INBUXA_REVISION, which the image build passes in; a
build without one writes nothing, and nginx answers that address with a
404 rather than the app. tsconfig.node.json drops source-archive.ts,
gone since #7.
jcoffey-dev merged commit 00c29bdf2a into main 2026-10-29 05:31:11 +00:00
jcoffey-dev deleted branch feat/well-known-source 2026-10-29 05:31:11 +00:00
Sign in to join this conversation.