Skip to content

Commit f8ae886

Browse files
Hotfix: make the apex canonical
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent b2f6794 commit f8ae886

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

infra/Pulumi.prod.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44
secretsprovider: awskms://alias/districtr-pulumi-secrets?region=us-east-2
55
config:
66
aws:region: us-east-2
7-
districtr-infra:appDomain: beta.districtr.org
8-
districtr-infra:apiDomain: api.beta.districtr.org
7+
# The apex is the canonical host. appDomain also sets APP_BASE_URL — the
8+
# Auth0 callback base and metadataBase — so until this flipped, pages served
9+
# at districtr.org still sent sign-ins and canonical URLs to beta.
10+
districtr-infra:appDomain: districtr.org
11+
districtr-infra:apiDomain: api.districtr.org
12+
# Same six names as before the flip, just re-sorted around the new
13+
# domainName — the cert covers old and new until beta is retired.
914
districtr-infra:extraDomains:
10-
- www.beta.districtr.org
11-
- districtr.org
1215
- www.districtr.org
13-
- api.districtr.org
14-
# Routes api.districtr.org to the backend before apiDomain flips to it, so
15-
# the name works the moment DNS points here. Becomes api.beta.districtr.org
16-
# on flip day (cached bundles keep calling the old one).
16+
- beta.districtr.org
17+
- www.beta.districtr.org
18+
- api.beta.districtr.org
19+
# Bundles built before the API URL flip still call the beta host; this keeps
20+
# them reaching the backend (and under the API rate limit) until they age out.
1721
districtr-infra:extraApiDomains:
18-
- api.districtr.org
22+
- api.beta.districtr.org
1923
districtr-infra:corsOrigins: https://beta.districtr.org,https://www.beta.districtr.org,https://districtr.org,https://www.districtr.org
2024
districtr-infra:s3BucketName:
2125
secure: v1:MS8AzWKQiTmtjfkB:oz6SV4+k43qsx7zvx/cdwVO4Be+fhIJd1wMaghY7OLAHbWwTV3gzHrTg

0 commit comments

Comments
 (0)