Skip to content

Commit 216affe

Browse files
committed
resolve conflicts manually as gitbutler seems to have issues with conflicts
2 parents 5ff320b + 86c0139 commit 216affe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2558
-203
lines changed

.changeset/friendly-experts-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
fix deduplication for memory queue and add some log

.changeset/purple-penguins-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
feat: add a sharded SQLite Durable object implementation for the tag cache

.changeset/smart-bugs-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
feat: durable object de-duping revalidation queue

.changeset/ten-mice-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
Implement next mode for d1 tag cache that will reduce write

examples/common/apps.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const apps = [
1212
"app-pages-router",
1313
"app-router",
1414
"pages-router",
15+
// overrides
16+
"d1-tag-next",
17+
"memory-queue",
1518
// bugs
1619
"gh-119",
1720
"gh-219",

examples/common/config-e2e.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export function configurePlaywright(
1313
isWorker = true,
1414
// Tests with multiple browsers
1515
multipleBrowsers = false,
16+
// Whether to run tests in single file in parallel
17+
parallel = true,
1618
} = {}
1719
) {
1820
const port = getAppPort(app, { isWorker });
@@ -60,7 +62,7 @@ export function configurePlaywright(
6062
/* ignore runtime specific tests */
6163
testIgnore: isWorker ? "*next.spec.ts" : "*cloudflare.spec.ts",
6264
/* Run tests in files in parallel */
63-
fullyParallel: true,
65+
fullyParallel: parallel,
6466
/* Fail the build on CI if you accidentally left test.only in the source code. */
6567
forbidOnly: isCI,
6668
/* Retry on CI only */
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export async function GET(request: Request, { params }: { params: Promise<{ slug: string }> }) {
2+
const { slug } = await params;
3+
return Response.json({ slug });
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { NextRequest } from "next/server";
2+
3+
export function GET(request: NextRequest) {
4+
const searchParams = request.nextUrl.searchParams;
5+
const query = searchParams.get("query");
6+
if (query === "OpenNext is awesome!") {
7+
return Response.json({ query });
8+
}
9+
return new Response("Internal Server Error", { status: 500 });
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { redirect } from "next/navigation";
2+
3+
export async function GET(request: Request) {
4+
redirect("https://nextjs.org/");
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const revalidate = 5;
2+
3+
async function getTime() {
4+
return new Date().toISOString();
5+
}
6+
7+
export async function GET() {
8+
const time = await getTime();
9+
return Response.json({ time });
10+
}

0 commit comments

Comments
 (0)