Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artifactBaseUrl #16

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Add artifactBaseUrl #16

merged 1 commit into from
Nov 28, 2023

Conversation

timkelty
Copy link
Collaborator

@AugustMiller can you try this branch and see how it feels dev-artifactBaseUrl?

You can set CRAFT_CLOUD_ARTIFACT_BASE_URL in env, or artifactBaseUrl in config/cloud.php.
Then you should be able to drop your ternary and use artifactUrl everywhere.

Related: #15

@AugustMiller
Copy link
Contributor

Yeah, this is awesome. For our site, I was able to directly use the @artifactBaseUrl alias, then set CRAFT_CLOUD_ARTIFACT_BASE_URL and get exactly the behavior I expected.

I've made some more updates to the Build Process and Artifacts article to reflect our intent and these new capabilities!

@timkelty timkelty merged commit 1a46b3c into main Nov 28, 2023
5 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