refactor(core): use getSnapshotPath() (#2873)

This commit is contained in:
Asher Gomez
2025-04-30 10:31:47 +02:00
committed by GitHub
parent cfa7fdc6b9
commit b582c57e57
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import * as path from "@std/path";
import type { ResolvedFreshConfig } from "./config.ts";
import { getSnapshotPath, type ResolvedFreshConfig } from "./config.ts";
import { DENO_DEPLOYMENT_ID, setBuildId } from "./runtime/build_id.ts";
import * as colors from "@std/fmt/colors";
@@ -30,7 +30,7 @@ export interface BuildCache {
export class ProdBuildCache implements BuildCache {
static async fromSnapshot(config: ResolvedFreshConfig, islandCount: number) {
const snapshotPath = path.join(config.build.outDir, "snapshot.json");
const snapshotPath = getSnapshotPath(config);
const staticFiles = new Map<string, FileSnapshot>();
const islandToChunk = new Map<string, string>();