Router component lets you create a CloudFront distribution to route requests to different origins.
Constructor
sst.config.ts
Parameters
routes
Define routes that map URL paths to destinations.
domain
Set a custom domain for your router.Support for wildcard subdomains:
Properties
url
nodes
Examples
Route to a URL
sst.config.ts
Route to an S3 bucket
sst.config.ts