Skip to content

Serve VERSION_D at /static/VERSION_D — add static-files build asset (#813) - #1474

Closed
Kasinhou wants to merge 2 commits into
customer/zcu-pubfrom
deployed-version-info/zcu-pub
Closed

Serve VERSION_D at /static/VERSION_D — add static-files build asset (#813)#1474
Kasinhou wants to merge 2 commits into
customer/zcu-pubfrom
deployed-version-info/zcu-pub

Conversation

@Kasinhou

Copy link
Copy Markdown

What & why (issue #813)

Every customer should be able to see which commit is currently deployed. On the reference branch dtq-dev this is served at /static/VERSION_D.

This branch already had the static-page module, scripts/sourceversion.py and the docker.yml step that generates src/static-files/VERSION_D.html at build time — but src/static-files was not registered as a build asset in angular.json, so the generated file was never deployed and /static/VERSION_D returned nothing.

Change

  • angular.json: add src/static-files to the build assets (matches dtq-dev).

One line. No runtime/behaviour change beyond making the version file reachable.

Verification

  • Local ng build produces dist/browser/static-files/VERSION_D.html.
  • /static/VERSION_D renders the git hash, commit date and build-run link.

🤖 Generated with Claude Code

Matus Kasak and others added 2 commits August 20, 2026 15:18
…813)

The static-page module and sourceversion.py/docker.yml were already present
on this branch, but `src/static-files` was not registered as a build asset,
so the CI-generated src/static-files/VERSION_D.html was never deployed and
`/static/VERSION_D` returned nothing. Add `src/static-files` to angular.json
assets to match dtq-dev, making the deployed-commit info reachable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Only the deployed-version info page should be reachable. Scope the angular.json
asset to VERSION_D.html and remove the inherited LINDAT static-files set
(about/cite/faq/license pages + cs/ localized copies) so nothing else under
/static is web-accessible. A VERSION_D.html placeholder keeps the directory
present for the build-time generation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Kasinhou

Copy link
Copy Markdown
Author

Closing as redundant. The inherited LINDAT static pages were already removed on the base (via the merged #1479/#1480/#1481), and /static/VERSION_D is already served on the dev machine, so this PR is no longer needed.

@Kasinhou Kasinhou closed this Aug 21, 2026
@Kasinhou
Kasinhou deleted the deployed-version-info/zcu-pub branch August 21, 2026 10:10
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