Waku
Source:
src/AWS/Website/Waku.ts
Deploy a Waku application to AWS: the RSC server on a streaming Lambda Function URL, static assets (SSG pages included) in S3, and a CloudFront distribution whose edge router serves uploaded files from S3 and forwards everything else to the server.
The build runs through @alchemy.run/frontend-frameworks/waku with the
@alchemy.run/frontend-frameworks/waku/aws deploy target (this package’s fork
of waku’s aws-lambda adapter, streaming enabled) — both must be installed
in your project.
Creating Waku Sites
Section titled “Creating Waku Sites”Basic Waku App
const site = yield* AWS.Website.Waku("Web", { rootDir: "./app",});Custom Domain
const site = yield* AWS.Website.Waku("Web", { rootDir: "./app", domain: { name: "app.example.com", hostedZoneId: zone.hostedZoneId, },});Server Configuration
Section titled “Server Configuration”const site = yield* AWS.Website.Waku("Web", { rootDir: "./app", memorySize: 2048, env: { API_BASE: api.url, },});Waku Config Overrides
Section titled “Waku Config Overrides”Waku configuration lives in your waku.config.*. The waku prop
overrides it per key at deploy time — for values that vary by stage
or come from other resources.
const site = yield* AWS.Website.Waku("Web", { waku: { basePath: "/docs/", },});