Skip to content

Commit dc21580

Browse files
committed
moved tag cache
1 parent 3456af3 commit dc21580

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

packages/open-next/src/adapters/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { TagCache } from "../cache/tag/types.js";
21
import type { IncrementalCache } from "../overrides/incrementalCache/types.js";
2+
import { TagCache } from "../overrides/tagCache/types.js";
33
import { isBinaryContentType } from "./binary.js";
44
import { debug, error, warn } from "./logger.js";
55

packages/open-next/src/core/resolve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Wrapper,
1111
} from "types/open-next.js";
1212

13-
import { TagCache } from "../cache/tag/types.js";
13+
import { TagCache } from "../overrides/tagCache/types.js";
1414

1515
export async function resolveConverter<
1616
E extends BaseEventOrResult = InternalEvent,
@@ -54,7 +54,7 @@ export async function resolveTagCache(
5454
return tagCache();
5555
} else {
5656
// This will be replaced by the bundler
57-
const m_1 = await import("../cache/tag/dynamodb.js");
57+
const m_1 = await import("../overrides/tagCache/dynamodb.js");
5858
return m_1.default;
5959
}
6060
}
File renamed without changes.

packages/open-next/src/cache/tag/dynamodb-lite.ts renamed to packages/open-next/src/overrides/tagCache/dynamodb-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
getDynamoBatchWriteCommandConcurrency,
1111
MAX_DYNAMO_BATCH_WRITE_ITEM_COUNT,
1212
} from "./constants";
13-
import { TagCache } from "./types";
13+
import type { TagCache } from "./types";
1414

1515
let awsClient: AwsClient | null = null;
1616

packages/open-next/src/cache/tag/dynamodb.ts renamed to packages/open-next/src/overrides/tagCache/dynamodb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
getDynamoBatchWriteCommandConcurrency,
1313
MAX_DYNAMO_BATCH_WRITE_ITEM_COUNT,
1414
} from "./constants";
15-
import { TagCache } from "./types";
15+
import type { TagCache } from "./types";
1616

1717
const { CACHE_BUCKET_REGION, CACHE_DYNAMO_TABLE, NEXT_BUILD_ID } = process.env;
1818

File renamed without changes.

packages/open-next/src/plugins/resolve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export function openNextResolvePlugin({
6767
}
6868
if (overrides?.tagCache) {
6969
contents = contents.replace(
70-
"../cache/tag/dynamodb.js",
71-
`../cache/tag/${getOverrideOrDefault(
70+
"../overrides/tagCache/dynamodb.js",
71+
`../overrides/tagCache/${getOverrideOrDefault(
7272
overrides.tagCache,
7373
"dynamodb-lite",
7474
)}.js`,

packages/open-next/src/types/open-next.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import type { ReadableStream } from "node:stream/web";
44
import type { StreamCreator } from "http/index.js";
55

66
import type { WarmerEvent, WarmerResponse } from "../adapters/warmer-function";
7-
import type { TagCache } from "../cache/tag/types";
87
import type { IncrementalCache } from "../overrides/incrementalCache/types";
98
import type { Queue } from "../overrides/queue/types";
9+
import type { TagCache } from "../overrides/tagCache/types";
1010

1111
export type BaseEventOrResult<T extends string = string> = {
1212
type: T;

0 commit comments

Comments
 (0)