Skip to content

Allow configuring the CP resource base URL - #204

Merged
timkelty merged 1 commit into
3.xfrom
timkelty/cp-resource-base-url
Sep 25, 2026
Merged

timkelty merged 1 commit into
3.xfrom
timkelty/cp-resource-base-url

Conversation

@timkelty

@timkelty timkelty commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Add resourceBaseUrl / CRAFT_CLOUD_RESOURCE_BASE_URL to override CP resource URLs, retaining the CDN fallback when unset. Clean up configuration docs and deprecate the unused preview-domain setting/helper.

Validation: targeted URL/config checks, syntax, ECS, and Thermos passed. Full suite not run locally.

Copilot AI lite review requested due to automatic review settings September 25, 2026 14:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T14:03:44.949560Z 75b378a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain, and all reviewers assessed it as ready.

Review effort: Lite
Findings: None

What changed in this PR

Adds configurable CP resource URLs with CDN fallback, updates configuration documentation, and deprecates legacy preview-domain APIs.

Changes:

  • Adds resourceBaseUrl and environment-variable support.
  • Preserves previewDomain compatibility while marking it deprecated.
  • Documents revised and read-only configuration settings.
File Summary
src/​fs/​CpResourcesFs.php Applies the configured resource base URL.
src/​Config.php Defines the new setting and deprecates preview-domain APIs.
README.md Documents configuration changes and managed settings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@timkelty
timkelty merged commit c22bca2 into 3.x Sep 25, 2026
10 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.

2 participants