Skip to content
This repository was archived by the owner on Jan 2, 2022. It is now read-only.

Commit d27524d

Browse files
committed
fix: just cache the .next/cache folder
Signed-off-by: Jonah Snider <[email protected]>
1 parent f651c37 commit d27524d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ function generateAbsolutePaths(
3636
const buildDirPathFromProject = options.inputs.build_dir_path ?? '.';
3737

3838
/** The absolute path to the build folder for Next.js. */
39-
const absoluteBuildDirPath = joinPaths(options.netlifyConfig.build.base, buildDirPathFromProject, buildDirName);
40-
/** The absolute path to the build manifest Next.js uses. */
41-
const manifestPath = joinPaths(absoluteBuildDirPath, 'build-manifest.json');
39+
const absoluteBuildDirPath = joinPaths(options.netlifyConfig.build.base, buildDirPathFromProject, buildDirName, 'cache');
40+
/** The absolute path to the build manifest Next.js uses. */
41+
// I don't actually know if this build manifest has any relation to the cache folder
42+
const manifestPath = joinPaths(absoluteBuildDirPath, '..', 'build-manifest.json');
4243

4344
return {
4445
absolute: {

0 commit comments

Comments
 (0)