@vercel/next 3.3.17 → 3.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -6
- package/dist/server-build.js +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -40138,7 +40138,6 @@ const async_sema_1 = __webpack_require__(7905);
|
|
40138
40138
|
const escape_string_regexp_1 = __importDefault(__webpack_require__(3133));
|
40139
40139
|
const find_up_1 = __importDefault(__webpack_require__(7130));
|
40140
40140
|
const fs_extra_1 = __webpack_require__(2650);
|
40141
|
-
const os_1 = __importDefault(__webpack_require__(2087));
|
40142
40141
|
const path_1 = __importDefault(__webpack_require__(5622));
|
40143
40142
|
const resolve_from_1 = __importDefault(__webpack_require__(7472));
|
40144
40143
|
const semver_1 = __importDefault(__webpack_require__(1039));
|
@@ -40240,7 +40239,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
40240
40239
|
repoRootPath = entryPath;
|
40241
40240
|
entryPath = path_1.default.join(entryPath, config.rootDirectory);
|
40242
40241
|
}
|
40243
|
-
const outputDirectory = config.outputDirectory || '.next';
|
40242
|
+
const outputDirectory = path_1.default.join('./', config.outputDirectory || '.next');
|
40244
40243
|
const dotNextStatic = path_1.default.join(entryPath, outputDirectory, 'static');
|
40245
40244
|
// TODO: remove after testing used for simulating root directory monorepo
|
40246
40245
|
// setting that can't be triggered with vercel.json
|
@@ -40385,8 +40384,6 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
40385
40384
|
target = await (0, create_serverless_config_1.default)(workPath, entryPath, nextVersion);
|
40386
40385
|
}
|
40387
40386
|
const env = { ...spawnOpts.env };
|
40388
|
-
const memoryToConsume = Math.floor(os_1.default.totalmem() / 1024 ** 2) - 128;
|
40389
|
-
env.NODE_OPTIONS = `--max_old_space_size=${memoryToConsume}`;
|
40390
40387
|
env.NEXT_EDGE_RUNTIME_PROVIDER = 'vercel';
|
40391
40388
|
if (target) {
|
40392
40389
|
// Since version v10.0.8-canary.15 of Next.js the NEXT_PRIVATE_TARGET env
|
@@ -40680,6 +40677,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
40680
40677
|
value.contentType = value.contentType || 'text/html; charset=utf-8';
|
40681
40678
|
}
|
40682
40679
|
});
|
40680
|
+
console.log('Notice: detected `next export`, this de-opts some Next.js features\nSee more info: https://nextjs.org/docs/advanced-features/static-html-export');
|
40683
40681
|
return {
|
40684
40682
|
output,
|
40685
40683
|
images: (0, utils_1.getImagesConfig)(imagesManifest),
|
@@ -41958,7 +41956,7 @@ const prepareCache = async ({ workPath, repoRootPath, entrypoint, config = {}, }
|
|
41958
41956
|
(0, build_utils_1.debug)('Preparing cache...');
|
41959
41957
|
const entryDirectory = path_1.default.dirname(entrypoint);
|
41960
41958
|
const entryPath = path_1.default.join(workPath, entryDirectory);
|
41961
|
-
const outputDirectory = config.outputDirectory || '.next';
|
41959
|
+
const outputDirectory = path_1.default.join('./', config.outputDirectory || '.next');
|
41962
41960
|
const nextVersionRange = await getNextVersionRange(entryPath);
|
41963
41961
|
const isLegacy = nextVersionRange && isLegacyNext(nextVersionRange);
|
41964
41962
|
if (isLegacy) {
|
@@ -43241,7 +43239,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
43241
43239
|
continue: true,
|
43242
43240
|
},
|
43243
43241
|
{
|
43244
|
-
src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc)
|
43242
|
+
src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+?)(?:/)?$')}`,
|
43245
43243
|
has: [
|
43246
43244
|
{
|
43247
43245
|
type: 'header',
|
package/dist/server-build.js
CHANGED
@@ -879,7 +879,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
879
879
|
continue: true,
|
880
880
|
},
|
881
881
|
{
|
882
|
-
src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc)
|
882
|
+
src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+?)(?:/)?$')}`,
|
883
883
|
has: [
|
884
884
|
{
|
885
885
|
type: 'header',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.19",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@types/semver": "6.0.0",
|
46
46
|
"@types/text-table": "0.2.1",
|
47
47
|
"@types/webpack-sources": "3.2.0",
|
48
|
-
"@vercel/build-utils": "
|
48
|
+
"@vercel/build-utils": "6.0.0",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
50
|
"@vercel/routing-utils": "2.1.8",
|
51
51
|
"async-sema": "3.0.1",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "25f6595d3698546ba69c7fe9f601a906167fef3f"
|
75
75
|
}
|