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.
Type Parameters
Section titled “Type Parameters”Query extends FunctionReference<"query">
Parameters
Section titled “Parameters”Static params configuration.
OptionalRestArgs<Query>[0]
client
Section titled “client”getSlug
Section titled “getSlug”(item) => string
paramName
Section titled “paramName”string
Query
Returns
Section titled “Returns”Promise<Record<string, string>[]>
{ [paramName]: string }[], or [] if the read fails.