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 1
1
import { expect , test } from "@playwright/test" ;
2
2
3
3
// 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 } ) => {
5
5
test . setTimeout ( 60000 ) ;
6
6
await page . goto ( "/" ) ;
7
7
await page . locator ( '[href="/isr"]' ) . click ( ) ;
Original file line number Diff line number Diff line change 1
1
import { expect , test } from "@playwright/test" ;
2
2
3
3
// 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 } ) => {
5
5
test . setTimeout ( 60000 ) ;
6
6
await page . goto ( "/" ) ;
7
7
await page . locator ( '[href="/pages_isr"]' ) . click ( ) ;
Original file line number Diff line number Diff line change 1
1
import 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" ;
2
4
3
5
const config : OpenNextConfig = {
4
6
default : {
5
7
override : {
6
8
wrapper : "cloudflare-node" ,
7
9
converter : "edge" ,
10
+ incrementalCache : ( ) => kvCache ,
11
+ queue : ( ) => memoryQueue ,
8
12
// Unused implementation
9
- incrementalCache : "dummy" ,
10
13
tagCache : "dummy" ,
11
- queue : "dummy" ,
12
14
} ,
13
15
} ,
14
16
Original file line number Diff line number Diff line change 7
7
"assets" : {
8
8
"directory" : " .open-next/assets" ,
9
9
"binding" : " ASSETS"
10
- }
10
+ },
11
+ "kv_namespaces" : [
12
+ {
13
+ "binding" : " NEXT_CACHE_WORKERS_KV" ,
14
+ "id" : " <BINDING_ID>"
15
+ }
16
+ ]
11
17
}
Original file line number Diff line number Diff line change 1
1
import { expect , test } from "@playwright/test" ;
2
2
3
3
// 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 } ) => {
5
5
test . setTimeout ( 45000 ) ;
6
6
await page . goto ( "/" ) ;
7
7
await page . locator ( "[href='/isr/']" ) . click ( ) ;
Original file line number Diff line number Diff line change 1
1
import 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" ;
2
4
3
5
const config : OpenNextConfig = {
4
6
default : {
5
7
override : {
6
8
wrapper : "cloudflare-node" ,
7
9
converter : "edge" ,
10
+ incrementalCache : ( ) => kvCache ,
11
+ queue : ( ) => memoryQueue ,
8
12
// Unused implementation
9
- incrementalCache : "dummy" ,
10
13
tagCache : "dummy" ,
11
- queue : "dummy" ,
12
14
} ,
13
15
} ,
14
16
Original file line number Diff line number Diff line change 7
7
"assets" : {
8
8
"directory" : " .open-next/assets" ,
9
9
"binding" : " ASSETS"
10
- }
10
+ },
11
+ "kv_namespaces" : [
12
+ {
13
+ "binding" : " NEXT_CACHE_WORKERS_KV" ,
14
+ "id" : " <BINDING_ID>"
15
+ }
16
+ ]
11
17
}
You can’t perform that action at this time.
0 commit comments