Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/e2e/app-pages-router/e2e/isr.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "@playwright/test";

// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
test.skip("Incremental Static Regeneration", async ({ page }) => {
test("Incremental Static Regeneration", async ({ page }) => {
test.setTimeout(60000);
await page.goto("/");
await page.locator('[href="/isr"]').click();
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e/app-pages-router/e2e/pages_isr.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "@playwright/test";

// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
test.skip("Incremental Static Regeneration", async ({ page }) => {
test("Incremental Static Regeneration", async ({ page }) => {
test.setTimeout(60000);
await page.goto("/");
await page.locator('[href="/pages_isr"]').click();
Expand Down
6 changes: 4 additions & 2 deletions examples/e2e/app-pages-router/open-next.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
import kvCache from "@opennextjs/cloudflare/kv-cache";
import memoryQueue from "@opennextjs/cloudflare/memory-queue";

const config: OpenNextConfig = {
default: {
override: {
wrapper: "cloudflare-node",
converter: "edge",
incrementalCache: () => kvCache,
queue: () => memoryQueue,
// Unused implementation
incrementalCache: "dummy",
tagCache: "dummy",
queue: "dummy",
},
},

Expand Down
8 changes: 7 additions & 1 deletion examples/e2e/app-pages-router/wrangler.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS"
}
},
"kv_namespaces": [
{
"binding": "NEXT_CACHE_WORKERS_KV",
"id": "<BINDING_ID>"
}
]
}
2 changes: 1 addition & 1 deletion examples/e2e/pages-router/e2e/isr.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "@playwright/test";

// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
test.skip("Incremental Static Regeneration", async ({ page }) => {
test("Incremental Static Regeneration", async ({ page }) => {
test.setTimeout(45000);
await page.goto("/");
await page.locator("[href='/isr/']").click();
Expand Down
6 changes: 4 additions & 2 deletions examples/e2e/pages-router/open-next.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
import kvCache from "@opennextjs/cloudflare/kv-cache";
import memoryQueue from "@opennextjs/cloudflare/memory-queue";

const config: OpenNextConfig = {
default: {
override: {
wrapper: "cloudflare-node",
converter: "edge",
incrementalCache: () => kvCache,
queue: () => memoryQueue,
// Unused implementation
incrementalCache: "dummy",
tagCache: "dummy",
queue: "dummy",
},
},

Expand Down
8 changes: 7 additions & 1 deletion examples/e2e/pages-router/wrangler.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS"
}
},
"kv_namespaces": [
{
"binding": "NEXT_CACHE_WORKERS_KV",
"id": "<BINDING_ID>"
}
]
}