t3-code-android-nightly/.repos/alchemy-effect/examples/aws-static-site
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00
..
site chore(refs): sync Alchemy reference to beta.76 (#10654) 2026-09-07 21:54:45 -07:00
alchemy.run.ts chore: add Alchemy reference repo subtree (#2918) 2026-06-03 00:08:31 +00:00
package.json chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327) 2026-09-17 23:21:25 -07:00
README.md chore: add Alchemy reference repo subtree (#2918) 2026-06-03 00:08:31 +00:00
tsconfig.json chore: add Alchemy reference repo subtree (#2918) 2026-06-03 00:08:31 +00:00

AWS Static Site Example

This example deploys a static website from the local site/ directory using:

  • AWS.Website.StaticSite
  • private S3 origin
  • CloudFront distribution
  • optional ACM certificate in us-east-1
  • optional Route 53 alias records

Commands

bun install
bun run --filter aws-static-site-example deploy

Optional Custom Domain

Set these environment variables before deploy:

export WEBSITE_DOMAIN=www.example.com
export WEBSITE_ZONE_ID=Z1234567890
export WEBSITE_ALIASES=example.com,static.example.com

When WEBSITE_DOMAIN and WEBSITE_ZONE_ID are provided, the example will:

  • request an ACM certificate
  • create Route 53 validation records
  • create Route 53 alias records to CloudFront

Without them, the example still deploys and returns the CloudFront URL.