Skip to content

Commit c5e9bff

Browse files
authored
chore: unskip more isr e2es (#390)
1 parent 531ec1e commit c5e9bff

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

examples/e2e/app-pages-router/e2e/isr.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { 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();

examples/e2e/app-pages-router/e2e/pages_isr.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { 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();

examples/e2e/app-pages-router/open-next.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
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";
24

35
const 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

examples/e2e/app-pages-router/wrangler.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
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
}

examples/e2e/pages-router/e2e/isr.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { 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();

examples/e2e/pages-router/open-next.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
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";
24

35
const 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

examples/e2e/pages-router/wrangler.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
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
}

0 commit comments

Comments
 (0)