Skip to content

ci(deploy): pass STORAGE_PUBLIC_BASE_URL to the build - #518

Open
saqibmanan wants to merge 1 commit into
devfrom
ci/storage-public-base-url
Open

saqibmanan wants to merge 1 commit into
devfrom
ci/storage-public-base-url

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

Follow-up to #514. next.config.mjs reads STORAGE_PUBLIC_BASE_URL at build time to add the CloudFront host to images.remotePatterns, but the deploy workflow never passed it, so deployed builds didn't allow the CDN host. Nothing breaks today because MediaImage is unoptimized, but a plain next/image with a CDN URL would throw.

  • development environment variable is set: https://d19fu942vtibly.cloudfront.net
  • production is left unset until prod moves to S3. Unset means no CDN entry, which is the same as today.

next.config.mjs adds this host to images.remotePatterns at build time
(#514). The deploy never set it, so the CloudFront host was never allowed.

This branch was previously deployed

1 inactive deployment
development — be6aa938 Deployed Nov 4, 2026 by saqibmanan via build (24.x) #890
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.

1 participant