craftcms / cloud-extension-yii2

0 stars 1 forks source link

Add artifactBaseUrl #16

Closed timkelty closed 11 months ago

timkelty commented 11 months ago

@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: https://github.com/craftcms/cloud-extension-yii2/issues/15

AugustMiller commented 11 months ago

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!