Skip to content

Commit 510a001

Browse files
committed
chore: remove DEFAULT_DIST_DIR
1 parent 9f3e5ef commit 510a001

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/helpers/cacheBuild.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const path = require('path')
22

3-
const DEFAULT_DIST_DIR = '.next'
4-
5-
// Account for possible custom distDir
6-
const getPath = (siteRoot, distDir, source) => path.join(siteRoot, distDir || DEFAULT_DIST_DIR, source)
3+
const getPath = (siteRoot, distDir, source) => path.join(siteRoot, distDir, source)
74

85
const restoreCache = async ({ cache, distDir, siteRoot }) => {
96
const cacheDir = getPath(siteRoot, distDir, 'cache')

0 commit comments

Comments
 (0)