@vercel/next 4.16.8 → 4.17.1
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 +7 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
package/dist/adapter/index.js
CHANGED
|
@@ -9721,8 +9721,14 @@ async function writeDeterministicRoutesManifest(distDir) {
|
|
|
9721
9721
|
async function getProjectEnvFiles(projectDir) {
|
|
9722
9722
|
const envFiles = [];
|
|
9723
9723
|
const projectFiles = (await import_promises.default.readdir(projectDir).catch(() => [])).sort();
|
|
9724
|
+
const productionEnvFiles = /* @__PURE__ */ new Set([
|
|
9725
|
+
".env.production.local",
|
|
9726
|
+
".env.local",
|
|
9727
|
+
".env.production",
|
|
9728
|
+
".env"
|
|
9729
|
+
]);
|
|
9724
9730
|
for (const file of projectFiles) {
|
|
9725
|
-
const isEnv =
|
|
9731
|
+
const isEnv = productionEnvFiles.has(file);
|
|
9726
9732
|
if (!isEnv) {
|
|
9727
9733
|
continue;
|
|
9728
9734
|
}
|
package/dist/index.js
CHANGED
|
@@ -10980,12 +10980,12 @@ function getWasmImportStatements(wasm = []) {
|
|
|
10980
10980
|
}).join("\n");
|
|
10981
10981
|
}
|
|
10982
10982
|
async function validateSize(script, wasmFiles) {
|
|
10983
|
-
const buffers = [Buffer.from(script, "utf8")];
|
|
10983
|
+
const buffers = [Uint8Array.from(Buffer.from(script, "utf8"))];
|
|
10984
10984
|
for (const filePath of wasmFiles) {
|
|
10985
|
-
buffers.push(await (0, import_fs_extra2.readFile)(filePath));
|
|
10985
|
+
buffers.push(Uint8Array.from(await (0, import_fs_extra2.readFile)(filePath)));
|
|
10986
10986
|
}
|
|
10987
10987
|
const content = Buffer.concat(buffers);
|
|
10988
|
-
const gzipped = await gzip(content);
|
|
10988
|
+
const gzipped = await gzip(Uint8Array.from(content));
|
|
10989
10989
|
if (gzipped.length > EDGE_FUNCTION_SIZE_LIMIT) {
|
|
10990
10990
|
throw new Error(
|
|
10991
10991
|
`Exceeds maximum edge function size: ${prettyBytes(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
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.20",
|
|
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/
|
|
57
|
-
"@vercel/
|
|
56
|
+
"@vercel/build-utils": "13.21.0",
|
|
57
|
+
"@vercel/routing-utils": "6.2.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|