Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 596aa36

Browse files
committed
update comment and move type location
1 parent 634b229 commit 596aa36

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/open-next/src/build/createAssets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from "node:fs";
22
import path from "node:path";
33

44
import logger from "../logger.js";
5-
import type { TagCacheMetaFile } from "../types/open-next.js";
5+
import type { TagCacheMetaFile } from "../types/cache.js";
66
import { isBinaryContentType } from "../utils/binary.js";
77
import * as buildHelper from "./helper.js";
88

@@ -56,7 +56,7 @@ export function createStaticAssets(options: buildHelper.BuildOptions) {
5656
* Create the cache assets.
5757
*
5858
* @param options Build options.
59-
* @returns Whether tag cache is used.
59+
* @returns Whether the tag cache is used, and the meta files collected.
6060
*/
6161
export function createCacheAssets(options: buildHelper.BuildOptions) {
6262
logger.info("Bundling cache assets...");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ export interface Meta {
7575
headers?: Record<string, undefined | string | string[]>;
7676
postponed?: string;
7777
}
78+
79+
export type TagCacheMetaFile = {
80+
tag: { S: string };
81+
path: { S: string };
82+
revalidatedAt: { N: string };
83+
};

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,3 @@ export interface OpenNextConfig {
447447
*/
448448
edgeExternals?: string[];
449449
}
450-
451-
export type TagCacheMetaFile = {
452-
tag: { S: string };
453-
path: { S: string };
454-
revalidatedAt: { N: string };
455-
};

0 commit comments

Comments
 (0)