Closed angeloashmore closed 1 year ago
This is being closed in favor or a simpler solution: cache bust /api/v2
requests at the @prismicio/client
level.
See https://github.com/prismicio/prismic-client/pull/285 for more details.
https://github.com/prismicio/prismic-client/pull/285 did not work out as initially expected.
This PR will be reopened in a new PR and considered for a possible official API.
Types of changes
Description
This PR adds a
prismic-next
CLI to@prismicio/next
to be used with Next.js 13 and App Router. Projects with@prismicio/next
will automatically have theprismic-next
CLI available.The CLI contains one command:
clear-cache
. The command clears Next.js' fetch cache of any/api/v2
requests, which effectively allows a site refetch fresh content from Prismic.prismic-next clear-cache
should be run before everynext dev
andnext build
command:Checklist:
🐯