UNPKG

@prismicio/next

Version:

Helpers to integrate Prismic into Next.js apps

23 lines (22 loc) 898 B
require("./_virtual/_rolldown/runtime.cjs"); const require_getPrismicCacheTags = require("./getPrismicCacheTags.cjs"); let next_cache_js = require("next/cache.js"); //#region src/cacheTagPrismicPages.ts /** * Tags the current cache entry with cache tags for a set of Prismic pages so they can be * revalidated when their content changes. * * Linked documents (via content relationships) are tagged as well, so the cache entry is * revalidated when any of its nested documents change. * * @param pages - A set of Prismic pages used to tag the cache entry. * @experimental * * @see {@link https://nextjs.org/docs/app/api-reference/functions/cacheTag} */ function cacheTagPrismicPages(pages) { (0, next_cache_js.cacheTag)(...require_getPrismicCacheTags.getPrismicCacheTags(pages)); } //#endregion exports.cacheTagPrismicPages = cacheTagPrismicPages; //# sourceMappingURL=cacheTagPrismicPages.cjs.map