Skip to content

Commit bbd41e6

Browse files
committed
updated to use #756
1 parent 69b0f9b commit bbd41e6

File tree

4 files changed

+40
-29
lines changed

4 files changed

+40
-29
lines changed

packages/cloudflare/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@
7373
"dependencies": {
7474
"@ast-grep/napi": "^0.34.1",
7575
"@dotenvx/dotenvx": "catalog:",
76-
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@725",
76+
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@756",
7777
"enquirer": "^2.4.1",
7878
"glob": "catalog:",
7979
"yaml": "^2.7.0"
8080
},
8181
"peerDependencies": {
8282
"wrangler": "catalog:"
8383
}
84-
}
84+
}

packages/cloudflare/src/api/d1-tag-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { debug, error } from "@opennextjs/aws/adapters/logger.js";
22
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
3-
import type { TagCache } from "@opennextjs/aws/types/overrides.js";
3+
import type { OriginalTagCache } from "@opennextjs/aws/types/overrides.js";
44
import { RecoverableError } from "@opennextjs/aws/utils/error.js";
55

66
import { getCloudflareContext } from "./cloudflare-context.js";
@@ -22,7 +22,7 @@ import { getCloudflareContext } from "./cloudflare-context.js";
2222
* and `revalidatedAt`. The table name can be configured with `NEXT_CACHE_D1_REVALIDATIONS_TABLE`
2323
* environment variable.
2424
*/
25-
class D1TagCache implements TagCache {
25+
class D1TagCache implements OriginalTagCache {
2626
public readonly name = "d1-tag-cache";
2727

2828
public async getByPath(rawPath: string): Promise<string[]> {

packages/cloudflare/src/cli/build/open-next/createServerBundle.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ async function generateBundle(
151151
buildHelper.copyEnvFile(appBuildOutputPath, packagePath, outputPath);
152152

153153
// Copy all necessary traced files
154-
await copyTracedFiles(
155-
appBuildOutputPath,
154+
await copyTracedFiles({
155+
buildOutputPath: appBuildOutputPath,
156156
packagePath,
157-
outputPath,
158-
fnOptions.routes ?? ["app/page.tsx"],
159-
isBundled
160-
);
157+
outputDir: outputPath,
158+
routes: fnOptions.routes ?? ["app/page.tsx"],
159+
bundledNextServer: isBundled,
160+
});
161161

162162
// Build Lambda code
163163
// note: bundle in OpenNext package b/c the adapter relies on the

pnpm-lock.yaml

Lines changed: 30 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)