Skip to content

Use the CDK stage domains for page meta URLs - #123

Open
jh0ker wants to merge 1 commit into
chore/build-toolingfrom
fix/page-meta-urls
Open

jh0ker wants to merge 1 commit into
chore/build-toolingfrom
fix/page-meta-urls

Conversation

@jh0ker

@jh0ker jh0ker commented Oct 6, 2026

Copy link
Copy Markdown
Member

The page URLs in the HTML meta tags (og:url, url, identifier-URL, og:image) still came from the Serverless-era branch mapping in scripts/env.js. Develop builds pointed at staging.code4maus.wt.wdr.cloud and staging builds at dev.code4maus.wt.wdr.cloud. Only production was correct.

  • Shared domains: the stage domains move to cdk/lib/stage-domains.json. The CDK config reads it (with resolveJsonModule), and so does scripts/env.js.
  • Workflows: _deploy.yml and _deploy-gated.yml pass STAGE to the frontend build. Builds without it (local builds, PR checks) use dev. Netlify previews still use DEPLOY_PRIME_URL. An unknown STAGE fails the build.
  • scripts/env.js: drops the Route53/ACM lookups, which only serverless.yml used, and promise-timeout with them. serverless.yml itself is removed further up the stack.
  • Docs: cdk/DEPLOYMENT.md listed the old staging domain in its stage table; it's corrected, and the doc now says where the domains are configured.

Tested: CDK tsc, jest, and cdk synth for dev and staging (same domains as before). Production builds with STAGE=dev and STAGE=staging produce the expected meta URLs.

@jh0ker
jh0ker added this pull request to stack #127 October 6, 2026 15:37
@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for serene-narwhal-9b7b1c ready!

Name Link
🔨 Latest commit f9173c2
🔍 Latest deploy log https://app.netlify.com/projects/serene-narwhal-9b7b1c/deploys/6ac52b030acb7f0008c88a8b
😎 Deploy Preview https://deploy-preview-123--serene-narwhal-9b7b1c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for peaceful-raindrop-cb2462 ready!

Name Link
🔨 Latest commit f9173c2
🔍 Latest deploy log https://app.netlify.com/projects/peaceful-raindrop-cb2462/deploys/6ac52b035a696600071721e9
😎 Deploy Preview https://deploy-preview-123--peaceful-raindrop-cb2462.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jh0ker
jh0ker force-pushed the fix/page-meta-urls branch 2 times, most recently from 13cbdb6 to df22b3b Compare October 6, 2026 16:20
The page URLs in the HTML meta tags still used the Serverless-era branch
mapping and code4maus.wt.wdr.cloud domains, so dev and staging builds
pointed to hosts that no longer exist. The stage domains now live in
cdk/lib/stage-domains.json, read by both the CDK config and the frontend
build. The deploy workflows pass the stage to the build via STAGE.

The Route53 and ACM lookups in scripts/env.js were only used by
serverless.yml and are removed along with promise-timeout.
@jh0ker
jh0ker force-pushed the fix/page-meta-urls branch from df22b3b to f9173c2 Compare October 6, 2026 17:08
@jh0ker
jh0ker marked this pull request as ready for review October 7, 2026 11:41

This branch has not been deployed

No deployments
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