Skip to content

fix(wallet-cdn): .html path rewrite, 404 page, alias and certificate in the CloudFormation template - #332

Merged
mahdi2ba merged 1 commit into
Greenstand:masterfrom
mahdi2ba:fix/wallet-cdn-path-rewrite
Oct 6, 2026
Merged

mahdi2ba merged 1 commit into
Greenstand:masterfrom
mahdi2ba:fix/wallet-cdn-path-rewrite

Conversation

@mahdi2ba

@mahdi2ba mahdi2ba commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

The wallet web app is a static Next.js export on an S3 REST origin, so /login must be served from /login.html. Today https://wallet.treetracker.org/login answers 403.

Adds to both stack templates (test and prod):

  • a CloudFront Function (viewer-request) that appends .html to extension-less paths, the same code already live on the dev distribution
  • 403/404 from the origin mapped to /404.html
  • alias and certificate as parameters, matching the live values that had been added by hand

Already applied on wallet-test-app today with a change set (Replacement=False, /login now 200). The same change set follows on wallet-prod-app.

…in the CloudFormation template

The wallet web app is a static Next.js export on an S3 REST origin, so
/login must be served from /login.html. Adds to both stack templates:

- CloudFront Function (viewer-request) that appends .html to extension-less
  paths, the same code already live on the dev distribution
- 403/404 from the origin mapped to /404.html
- Aliases and ViewerCertificate as parameters, matching the live values that
  had been added by hand

Applied on wallet-test-app on 2026-10-05 (change set, Replacement=False,
/login 200). The same change set follows on wallet-prod-app.
@mahdi2ba
mahdi2ba requested a review from dadiorchen October 5, 2026 19:41
@mahdi2ba
mahdi2ba merged commit 9ec5da5 into Greenstand:master Oct 6, 2026
1 check 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