Skip to content

vexStaticParams

vexStaticParams<Query>(props): Promise<Record<string, string>[]>

Defined in: packages/next/src/seo/vexStaticParams.ts:20

Builds Next.js generateStaticParams output for a slug-driven route from a Convex query.

Returns [] when the read fails — including an unreachable Convex deployment, which every CI build hits because it supplies placeholder env rather than skipping validation (P-020). A route with no static params still renders correctly on demand; it is simply not prerendered until the next build.

Query extends FunctionReference<"query">

Static params configuration.

OptionalRestArgs<Query>[0]

VexServerClient

(item) => string

string

Query

Promise<Record<string, string>[]>

{ [paramName]: string }[], or [] if the read fails.