Interface: RoutePointer
Defined in: packages/core/src/artifact.types.ts:114
What a route currently serves. This is the one record that changes in place: publishing, rolling back and unpublishing all move or remove a pointer, and touch nothing else.
Example
const pointer = await store.pointer("/pricing");
const artifact = pointer === null ? null : await store.read(pointer.hash);
Properties
hash
hash:
string
Defined in: packages/core/src/artifact.types.ts:121
The hash of the artifact serving this route right now.
matchKind
matchKind:
"exact"|"param"|"prefix"
Defined in: packages/core/src/artifact.types.ts:118
How a request matches the route — derived from it by parseMatchKind, never supplied.
route
route:
string
Defined in: packages/core/src/artifact.types.ts:116
The route served, exactly as it was published.
updatedAt
updatedAt:
string
Defined in: packages/core/src/artifact.types.ts:123
When the pointer last moved, as an ISO-8601 timestamp.