File tree Expand file tree Collapse file tree 7 files changed +25
-9
lines changed
Expand file tree Collapse file tree 7 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 11import { expect , test } from "@playwright/test" ;
22
33// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
4- test . skip ( "Incremental Static Regeneration" , async ( { page } ) => {
4+ test ( "Incremental Static Regeneration" , async ( { page } ) => {
55 test . setTimeout ( 60000 ) ;
66 await page . goto ( "/" ) ;
77 await page . locator ( '[href="/isr"]' ) . click ( ) ;
Original file line number Diff line number Diff line change 11import { expect , test } from "@playwright/test" ;
22
33// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
4- test . skip ( "Incremental Static Regeneration" , async ( { page } ) => {
4+ test ( "Incremental Static Regeneration" , async ( { page } ) => {
55 test . setTimeout ( 60000 ) ;
66 await page . goto ( "/" ) ;
77 await page . locator ( '[href="/pages_isr"]' ) . click ( ) ;
Original file line number Diff line number Diff line change 11import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js" ;
2+ import kvCache from "@opennextjs/cloudflare/kv-cache" ;
3+ import memoryQueue from "@opennextjs/cloudflare/memory-queue" ;
24
35const config : OpenNextConfig = {
46 default : {
57 override : {
68 wrapper : "cloudflare-node" ,
79 converter : "edge" ,
10+ incrementalCache : ( ) => kvCache ,
11+ queue : ( ) => memoryQueue ,
812 // Unused implementation
9- incrementalCache : "dummy" ,
1013 tagCache : "dummy" ,
11- queue : "dummy" ,
1214 } ,
1315 } ,
1416
Original file line number Diff line number Diff line change 77 "assets" : {
88 "directory" : " .open-next/assets" ,
99 "binding" : " ASSETS"
10- }
10+ },
11+ "kv_namespaces" : [
12+ {
13+ "binding" : " NEXT_CACHE_WORKERS_KV" ,
14+ "id" : " <BINDING_ID>"
15+ }
16+ ]
1117}
Original file line number Diff line number Diff line change 11import { expect , test } from "@playwright/test" ;
22
33// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
4- test . skip ( "Incremental Static Regeneration" , async ( { page } ) => {
4+ test ( "Incremental Static Regeneration" , async ( { page } ) => {
55 test . setTimeout ( 45000 ) ;
66 await page . goto ( "/" ) ;
77 await page . locator ( "[href='/isr/']" ) . click ( ) ;
Original file line number Diff line number Diff line change 11import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js" ;
2+ import kvCache from "@opennextjs/cloudflare/kv-cache" ;
3+ import memoryQueue from "@opennextjs/cloudflare/memory-queue" ;
24
35const config : OpenNextConfig = {
46 default : {
57 override : {
68 wrapper : "cloudflare-node" ,
79 converter : "edge" ,
10+ incrementalCache : ( ) => kvCache ,
11+ queue : ( ) => memoryQueue ,
812 // Unused implementation
9- incrementalCache : "dummy" ,
1013 tagCache : "dummy" ,
11- queue : "dummy" ,
1214 } ,
1315 } ,
1416
Original file line number Diff line number Diff line change 77 "assets" : {
88 "directory" : " .open-next/assets" ,
99 "binding" : " ASSETS"
10- }
10+ },
11+ "kv_namespaces" : [
12+ {
13+ "binding" : " NEXT_CACHE_WORKERS_KV" ,
14+ "id" : " <BINDING_ID>"
15+ }
16+ ]
1117}
You can’t perform that action at this time.
0 commit comments