We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3e5ef commit 510a001Copy full SHA for 510a001
src/helpers/cacheBuild.js
@@ -1,9 +1,6 @@
1
const path = require('path')
2
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)
+const getPath = (siteRoot, distDir, source) => path.join(siteRoot, distDir, source)
7
8
const restoreCache = async ({ cache, distDir, siteRoot }) => {
9
const cacheDir = getPath(siteRoot, distDir, 'cache')
0 commit comments