Skip to content

Commit c4e8ded

Browse files
committed
no need to read file
1 parent 624311a commit c4e8ded

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/presets/vercel/immutable.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import fsp from "node:fs/promises";
21
import { defu } from "defu";
32
import { glob } from "tinyglobby";
4-
import { join, resolve } from "pathe";
3+
import { resolve } from "pathe";
54
import { joinURL, withLeadingSlash } from "ufo";
65
import type { Nitro, NitroRouteRules } from "nitro/types";
76
import { writeFile } from "../_utils/fs.ts";
@@ -52,7 +51,6 @@ export async function generateImmutableManifest(nitro: Nitro) {
5251
if (!isImmutable(pathname)) {
5352
continue;
5453
}
55-
const contents = await fsp.readFile(join(publicDir, file));
5654
const url = joinURL(nitro.options.baseURL, pathname);
5755
hashes[url] = ""
5856
}

0 commit comments

Comments
 (0)