Skip to content

sst.aws.Router ignores the invalidation option #6880

@dirkdev98

Description

@dirkdev98

It seems like Router invalidations are only handled at the moment by the individual Ssr/StaticSite components. However, we have a router pointing to another router and other external urls and need to control the invalidation separately. The docs mention an invalidation option, but when experimenting with it, it doesn't seem to be wired up.
Since our invalidations are always tied to our own deploys, our use case would be satisfied with the documented API:

new sst.aws.Router("...", {
	// ...
	invalidation: {
		wait: false,
		paths: ["/*"],
		token: "our-own-computed-key",
	},
});

Or allowing to create the internal sst.aws.DistributionInvalidation as a public component.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions