Configuration object for a single static route to be generated.
Each path object contains the parameters needed to render a specific instance of a dynamic route at build time.
interface
Configuration object for a single static route to be generated.
Each path object contains the parameters needed to render a specific instance of a dynamic route at build time.
// Single blog post path
const blogPath: SSGPath<{ slug: string }> = {
params: { slug: "my-first-post" }
};
// Product page with multiple params
const productPath: SSGPath<{ category: string; id: string }> = {
params: {
category: "electronics",
id: "laptop-123"
}
};
// Documentation with catch-all route
const docsPath: SSGPath<{ path: string[] }> = {
params: { path: ["getting-started", "installation"] }
};