import { createSearchParamsCache, parseAsInteger, parseAsString, } from "nuqs/server"; // Note: import from 'nuqs/server' to avoid the "use client" directive export const searchParamsCache = createSearchParamsCache({ // List your search param keys and associated parsers here: q: parseAsString.withDefault(""), maxResults: parseAsInteger.withDefault(10), });