Bugfix
This commit is contained in:
Vendored
+2
-1
@@ -22,6 +22,7 @@ const args = (0, util_1.parseArgs)({
|
||||
alias: "d",
|
||||
},
|
||||
},
|
||||
allowPositionals: true,
|
||||
});
|
||||
const distDirName = args.values.distDir || (0, grab_default_dist_name_1.default)();
|
||||
const DIST_DIR = path_1.default.join(process.cwd(), distDirName);
|
||||
@@ -37,7 +38,7 @@ if (MAX_BUILDS < 1 ||
|
||||
throw new Error("Invalid MAX_BUILDS");
|
||||
}
|
||||
if (!fs_1.default.existsSync(DIST_DIR))
|
||||
fs_1.default.mkdirSync(DIST_DIR);
|
||||
fs_1.default.mkdirSync(DIST_DIR, { recursive: true });
|
||||
if (fs_1.default.existsSync(`${DIST_DIR}/BUILD`)) {
|
||||
PREV_BUILD_NO = fs_1.default.readFileSync(`${DIST_DIR}/BUILD`, "utf-8");
|
||||
}
|
||||
|
||||
+1
-2
@@ -3,10 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const grabDist_1 = __importDefault(require("./functions/grabDist"));
|
||||
const grabDist_1 = __importDefault(require("../../../rebuilds/next-js/grabDist"));
|
||||
const distDir = (0, grabDist_1.default)();
|
||||
const nextConfig = {
|
||||
/* config options here */
|
||||
reactStrictMode: true,
|
||||
distDir,
|
||||
};
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user