Skip to content

Commit 5ce5496

Browse files
committed
linting
1 parent 856d166 commit 5ce5496

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

examples/overrides/memory-queue/app/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ export default async function RootLayout({
1919

2020
return (
2121
<html lang="en">
22-
<body>
23-
{children}
24-
</body>
22+
<body>{children}</body>
2523
</html>
2624
);
2725
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

33
// Here we don't want to run the tests in parallel
4-
export default configurePlaywright("memory-queue", { isCI: !!process.env.CI, parallel: false, multipleBrowsers: false });
4+
export default configurePlaywright("memory-queue", {
5+
isCI: !!process.env.CI,
6+
parallel: false,
7+
multipleBrowsers: false,
8+
});

examples/overrides/memory-queue/open-next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import memoryQueue from "@opennextjs/cloudflare/memory-queue";
44

55
export default defineCloudflareConfig({
66
incrementalCache: kvIncrementalCache,
7-
queue: memoryQueue
7+
queue: memoryQueue,
88
});

examples/overrides/memory-queue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"typescript": "catalog:",
2626
"wrangler": "catalog:"
2727
}
28-
}
28+
}

packages/cloudflare/src/api/memory-queue.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { debug,error } from "@opennextjs/aws/adapters/logger";
1+
import { debug, error } from "@opennextjs/aws/adapters/logger";
22
import type { Queue, QueueMessage } from "@opennextjs/aws/types/overrides.js";
33
import { IgnorableError } from "@opennextjs/aws/utils/error.js";
44

@@ -26,9 +26,7 @@ export class MemoryQueue implements Queue {
2626

2727
if (this.revalidatedPaths.has(MessageDeduplicationId)) return;
2828

29-
this.revalidatedPaths.add(
30-
MessageDeduplicationId,
31-
);
29+
this.revalidatedPaths.add(MessageDeduplicationId);
3230

3331
try {
3432
const protocol = host.includes("localhost") ? "http" : "https";
@@ -47,7 +45,7 @@ export class MemoryQueue implements Queue {
4745
});
4846

4947
// Here we want at least to log when the revalidation was not successful
50-
if(response.status !== 200 || response.headers.get("x-nextjs-cache") !== "REVALIDATED") {
48+
if (response.status !== 200 || response.headers.get("x-nextjs-cache") !== "REVALIDATED") {
5149
error(`Revalidation failed for ${url} with status ${response.status}`);
5250
}
5351
debug(`Revalidation successful for ${url}`);

0 commit comments

Comments
 (0)