Skip to content

chore: support instance-level default bundle id#50

Merged
maxy-shpfy merged 1 commit into
mainfrom
07-01-chore_support_instance-level_default_bundle_id
Jul 1, 2026
Merged

chore: support instance-level default bundle id#50
maxy-shpfy merged 1 commit into
mainfrom
07-01-chore_support_instance-level_default_bundle_id

Conversation

@maxy-shpfy

@maxy-shpfy maxy-shpfy commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

TL;DR

The default session bundle ID is now configurable at container runtime rather than being baked into the image at build time.

What changed?

During the Vite build, VITE_DEFAULT_SESSION_BUNDLE_ID is set to a placeholder string (__TANGENT_RUNTIME_DEFAULT_SESSION_BUNDLE_ID__) instead of a real value. At container startup, docker-entrypoint.sh replaces that placeholder across all built HTML, JS, and CSS files with the value of VITE_DEFAULT_SESSION_BUNDLE_ID (defaulting to tangle if not set). The entrypoint also validates that the provided value is a valid bundle ID slug (lowercase letters, numbers, and hyphens).

The PI_PROXY_URL environment variable declaration and its associated comments have been removed from the Dockerfile.

How to test?

  1. Build the image and run it without setting VITE_DEFAULT_SESSION_BUNDLE_ID — confirm the default tangle bundle ID is used.
  2. Run the image with VITE_DEFAULT_SESSION_BUNDLE_ID=my-bundle and verify the placeholder is replaced correctly in the served assets.
  3. Run the image with an invalid value (e.g. uppercase letters or special characters) and confirm the container exits with an appropriate error message.

Why make this change?

Previously, the default session bundle ID was fixed at image build time, requiring a separate image build for each deployment targeting a different bundle default. By deferring the substitution to container startup, the same image can be reused across environments with different bundle defaults simply by setting an environment variable.

maxy-shpfy commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@maxy-shpfy maxy-shpfy force-pushed the 06-30-chore_egress_via_pre-configured_target_urls branch from 2762e47 to 185fda2 Compare July 1, 2026 18:52
@maxy-shpfy maxy-shpfy force-pushed the 07-01-chore_support_instance-level_default_bundle_id branch from d3368ab to 4034364 Compare July 1, 2026 18:52
@maxy-shpfy maxy-shpfy force-pushed the 06-30-chore_egress_via_pre-configured_target_urls branch from 185fda2 to 1d61c69 Compare July 1, 2026 19:02
@maxy-shpfy maxy-shpfy force-pushed the 07-01-chore_support_instance-level_default_bundle_id branch from 4034364 to 18d3599 Compare July 1, 2026 19:02
@maxy-shpfy maxy-shpfy marked this pull request as ready for review July 1, 2026 19:13
@maxy-shpfy maxy-shpfy requested a review from a team July 1, 2026 19:57

maxy-shpfy commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jul 1, 9:40 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 1, 9:46 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jul 1, 9:46 PM UTC: @maxy-shpfy merged this pull request with Graphite.

@maxy-shpfy maxy-shpfy changed the base branch from 06-30-chore_egress_via_pre-configured_target_urls to graphite-base/50 July 1, 2026 21:43
@maxy-shpfy maxy-shpfy changed the base branch from graphite-base/50 to main July 1, 2026 21:44
@maxy-shpfy maxy-shpfy force-pushed the 07-01-chore_support_instance-level_default_bundle_id branch from 18d3599 to 339bcb0 Compare July 1, 2026 21:45
@maxy-shpfy maxy-shpfy merged commit 74b68b3 into main Jul 1, 2026
11 checks passed
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