@vercel/next 4.16.3 → 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/index.js +24 -8
- package/package.json +2 -2
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;
|
|
@@ -16801,6 +16801,22 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16801
16801
|
} catch (_) {
|
|
16802
16802
|
}
|
|
16803
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
|
+
}
|
|
16804
16820
|
return {
|
|
16805
16821
|
buildOutputPath: import_path6.default.join(entryPath, outputDirectory, "output"),
|
|
16806
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
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.
|
|
56
|
+
"@vercel/build-utils": "13.12.1",
|
|
57
57
|
"@vercel/routing-utils": "6.1.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|