File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
examples/e2e/experimental Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ const nextConfig: NextConfig = {
44 /* config options here */
55 cleanDistDir : true ,
66 output : "standalone" ,
7+ cacheComponents : true ,
78 typescript : {
89 // Ignore type errors during build for now, we'll need to figure this out later
910 ignoreBuildErrors : true ,
1011 } ,
11- experimental : {
12- cacheComponents : true ,
13- } ,
1412} ;
1513
1614export default nextConfig ;
Original file line number Diff line number Diff line change 11import { revalidateTag } from "next/cache" ;
22
33export function GET ( ) {
4- revalidateTag ( "fullyTagged" ) ;
4+ revalidateTag ( "fullyTagged" , { expire : 0 } ) ;
55 return new Response ( "DONE" ) ;
66}
Original file line number Diff line number Diff line change 1- import { unstable_cacheLife , unstable_cacheTag } from "next/cache" ;
1+ import { cacheLife , cacheTag } from "next/cache" ;
22
33export async function FullyCachedComponent ( ) {
44 "use cache" ;
@@ -11,7 +11,7 @@ export async function FullyCachedComponent() {
1111
1212export async function FullyCachedComponentWithTag ( ) {
1313 "use cache" ;
14- unstable_cacheTag ( "fullyTagged" ) ;
14+ cacheTag ( "fullyTagged" ) ;
1515 return (
1616 < div >
1717 < p data-testid = "fully-cached-with-tag" > { Date . now ( ) } </ p >
@@ -21,7 +21,7 @@ export async function FullyCachedComponentWithTag() {
2121
2222export async function ISRComponent ( ) {
2323 "use cache" ;
24- unstable_cacheLife ( {
24+ cacheLife ( {
2525 stale : 1 ,
2626 revalidate : 5 ,
2727 } ) ;
You can’t perform that action at this time.
0 commit comments