@vercel/next 4.16.2 → 4.16.4
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/adapter/index.js +6 -1
- package/dist/index.js +28 -9
- package/package.json +5 -5
package/dist/adapter/index.js
CHANGED
|
@@ -9698,7 +9698,12 @@ async function handleNodeOutputs(nodeOutputs, {
|
|
|
9698
9698
|
prerenderFallbackFalseMap,
|
|
9699
9699
|
vercelOutputDir
|
|
9700
9700
|
}) {
|
|
9701
|
-
const nodeVersion = await (0, import_build_utils.getNodeVersion)(
|
|
9701
|
+
const nodeVersion = await (0, import_build_utils.getNodeVersion)(
|
|
9702
|
+
projectDir,
|
|
9703
|
+
void 0,
|
|
9704
|
+
vercelConfig,
|
|
9705
|
+
{}
|
|
9706
|
+
);
|
|
9702
9707
|
const fsSema = new import_async_sema.Sema(16, { capacity: nodeOutputs.length });
|
|
9703
9708
|
const functionsDir = import_node_path.default.join(vercelOutputDir, "functions");
|
|
9704
9709
|
const handlerRelativeDir = import_node_path.default.posix.relative(repoRoot, projectDir);
|
package/dist/index.js
CHANGED
|
@@ -2097,13 +2097,13 @@ var require_clone = __commonJS({
|
|
|
2097
2097
|
if (obj === null || typeof obj !== "object")
|
|
2098
2098
|
return obj;
|
|
2099
2099
|
if (obj instanceof Object)
|
|
2100
|
-
var
|
|
2100
|
+
var copy2 = { __proto__: getPrototypeOf(obj) };
|
|
2101
2101
|
else
|
|
2102
|
-
var
|
|
2102
|
+
var copy2 = /* @__PURE__ */ Object.create(null);
|
|
2103
2103
|
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
2104
|
-
Object.defineProperty(
|
|
2104
|
+
Object.defineProperty(copy2, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
2105
2105
|
});
|
|
2106
|
-
return
|
|
2106
|
+
return copy2;
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
});
|
|
@@ -2858,7 +2858,7 @@ var require_copy = __commonJS({
|
|
|
2858
2858
|
var { pathExists: pathExists2 } = require_path_exists2();
|
|
2859
2859
|
var { utimesMillis } = require_utimes();
|
|
2860
2860
|
var stat2 = require_stat();
|
|
2861
|
-
async function
|
|
2861
|
+
async function copy2(src, dest, opts = {}) {
|
|
2862
2862
|
if (typeof opts === "function") {
|
|
2863
2863
|
opts = { filter: opts };
|
|
2864
2864
|
}
|
|
@@ -2977,7 +2977,7 @@ var require_copy = __commonJS({
|
|
|
2977
2977
|
await fs5.unlink(dest);
|
|
2978
2978
|
return fs5.symlink(resolvedSrc, dest);
|
|
2979
2979
|
}
|
|
2980
|
-
module2.exports =
|
|
2980
|
+
module2.exports = copy2;
|
|
2981
2981
|
}
|
|
2982
2982
|
});
|
|
2983
2983
|
|
|
@@ -3703,7 +3703,7 @@ var require_move = __commonJS({
|
|
|
3703
3703
|
"use strict";
|
|
3704
3704
|
var fs5 = require_fs();
|
|
3705
3705
|
var path6 = require("path");
|
|
3706
|
-
var { copy } = require_copy2();
|
|
3706
|
+
var { copy: copy2 } = require_copy2();
|
|
3707
3707
|
var { remove: remove2 } = require_remove();
|
|
3708
3708
|
var { mkdirp } = require_mkdirs();
|
|
3709
3709
|
var { pathExists: pathExists2 } = require_path_exists2();
|
|
@@ -3742,7 +3742,7 @@ var require_move = __commonJS({
|
|
|
3742
3742
|
errorOnExist: true,
|
|
3743
3743
|
preserveTimestamps: true
|
|
3744
3744
|
};
|
|
3745
|
-
await
|
|
3745
|
+
await copy2(src, dest, opts);
|
|
3746
3746
|
return remove2(src);
|
|
3747
3747
|
}
|
|
3748
3748
|
module2.exports = move;
|
|
@@ -14574,7 +14574,10 @@ async function serverBuild({
|
|
|
14574
14574
|
let initialFileReasons;
|
|
14575
14575
|
let nextServerBuildTrace;
|
|
14576
14576
|
let instrumentationHookBuildTrace;
|
|
14577
|
-
const useBundledServer = import_semver4.default.gte(
|
|
14577
|
+
const useBundledServer = import_semver4.default.gte(
|
|
14578
|
+
nextVersion,
|
|
14579
|
+
BUNDLED_SERVER_NEXT_VERSION
|
|
14580
|
+
);
|
|
14578
14581
|
if (useBundledServer) {
|
|
14579
14582
|
(0, import_build_utils2.debug)("Using bundled Next.js server");
|
|
14580
14583
|
}
|
|
@@ -16798,6 +16801,22 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16798
16801
|
} catch (_) {
|
|
16799
16802
|
}
|
|
16800
16803
|
if (buildOutputVersion) {
|
|
16804
|
+
const publicDir = import_path6.default.join(entryPath, "public");
|
|
16805
|
+
const staticOutputDir = import_path6.default.join(
|
|
16806
|
+
entryPath,
|
|
16807
|
+
outputDirectory,
|
|
16808
|
+
"output/static"
|
|
16809
|
+
);
|
|
16810
|
+
if (await (0, import_fs_extra6.pathExists)(publicDir)) {
|
|
16811
|
+
const publicFiles = await (0, import_build_utils3.glob)("**/*", publicDir);
|
|
16812
|
+
for (const fileName of Object.keys(publicFiles)) {
|
|
16813
|
+
const destPath = import_path6.default.join(staticOutputDir, fileName);
|
|
16814
|
+
if (!await (0, import_fs_extra6.pathExists)(destPath)) {
|
|
16815
|
+
const srcPath = publicFiles[fileName].fsPath;
|
|
16816
|
+
await (0, import_fs_extra6.copy)(srcPath, destPath);
|
|
16817
|
+
}
|
|
16818
|
+
}
|
|
16819
|
+
}
|
|
16801
16820
|
return {
|
|
16802
16821
|
buildOutputPath: import_path6.default.join(entryPath, outputDirectory, "output"),
|
|
16803
16822
|
buildOutputVersion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@vercel/nft": "1.
|
|
16
|
+
"@vercel/nft": "1.5.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
19
|
+
"@next-community/adapter-vercel": "0.0.1-beta.15",
|
|
20
20
|
"@types/aws-lambda": "8.10.19",
|
|
21
21
|
"@types/buffer-crc32": "0.2.0",
|
|
22
22
|
"@types/bytes": "3.1.1",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"test-listen": "1.1.0",
|
|
54
54
|
"text-table": "0.2.0",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/build-utils": "13.
|
|
57
|
-
"@vercel/routing-utils": "6.
|
|
56
|
+
"@vercel/build-utils": "13.12.1",
|
|
57
|
+
"@vercel/routing-utils": "6.1.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|