docker: add PreviewDir helper #657

Closed
opened 2026-08-13 15:44:30 +00:00 by the.auditor · 1 comment
Owner

internal/docker/container.go adds SiteDir(s, version) for production asset paths but no preview counterpart. The model layout defines {baseDir}/sites/{site}/preview-{branch}; Phase 4 preview wiring will need it. Add a PreviewDir(s, branch) helper so both path forms stay in one place.

See PR #655.

`internal/docker/container.go` adds `SiteDir(s, version)` for production asset paths but no preview counterpart. The model layout defines `{baseDir}/sites/{site}/preview-{branch}`; Phase 4 preview wiring will need it. Add a `PreviewDir(s, branch)` helper so both path forms stay in one place. See PR #655.
Author
Owner

Resolved in PR #655 commit 5c7bb8e: StandaloneDeployer.PreviewDir(s, branch) added, mirroring SiteDir and covered by TestStandaloneDeployerDirs.

Resolved in PR #655 commit 5c7bb8e: `StandaloneDeployer.PreviewDir(s, branch)` added, mirroring `SiteDir` and covered by `TestStandaloneDeployerDirs`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#657
No description provided.