Skip to content

feat: derive source contentUrl from DA_CONTENT env var - #312

Merged
kptdobe merged 1 commit into
mainfrom
da-content-env-var
Aug 7, 2026
Merged

feat: derive source contentUrl from DA_CONTENT env var#312
kptdobe merged 1 commit into
mainfrom
da-content-env-var

Conversation

@kptdobe

@kptdobe kptdobe commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

The contentUrl returned in the source response was hardcoded to https://content.da.live. When the worker runs on stage/ci/dev/it, it should point to https://stage-content.da.live.

Changes

  • Add a DA_CONTENT var to every wrangler.toml environment:
    • productionhttps://content.da.live
    • stage / ci / dev / ithttps://stage-content.da.live
  • Thread env into sourceRespObject(env, daCtx) so contentUrl is built from env.DA_CONTENT.
  • Add DA_CONTENT to the Env type and the test env mock.
  • Add unit tests for sourceRespObject; update the IT assertion to stage-content.da.live.

Note: only contentUrl changed — editUrl still points to da.live.

🤖 Generated with Claude Code

The contentUrl in the source response was hardcoded to
https://content.da.live. On stage/ci/dev/it the worker should point
to https://stage-content.da.live instead.

Add a DA_CONTENT var per wrangler environment (production =
content.da.live, all others = stage-content.da.live) and thread env
into sourceRespObject so the base URL comes from config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kptdobe
kptdobe requested a review from tripodsan August 7, 2026 07:59
@kptdobe
kptdobe merged commit 11e926f into main Aug 7, 2026
6 checks passed
@kptdobe
kptdobe deleted the da-content-env-var branch August 7, 2026 08:27
adobe-bot pushed a commit that referenced this pull request Aug 7, 2026
# [1.15.0](v1.14.1...v1.15.0) (2026-08-07)

### Features

* derive source contentUrl from DA_CONTENT env var ([#312](#312)) ([11e926f](11e926f))
@adobe-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants