@vercel/next 4.17.0 → 4.17.2
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 +10 -7
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
|
@@ -16474,7 +16474,7 @@ ${JSON.stringify(
|
|
|
16474
16474
|
}
|
|
16475
16475
|
]
|
|
16476
16476
|
],
|
|
16477
|
-
framework: { version: nextVersion },
|
|
16477
|
+
framework: { slug: "nextjs", version: nextVersion },
|
|
16478
16478
|
flags: variantsManifest || void 0
|
|
16479
16479
|
};
|
|
16480
16480
|
}
|
|
@@ -17252,7 +17252,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
17252
17252
|
}
|
|
17253
17253
|
] : []
|
|
17254
17254
|
],
|
|
17255
|
-
framework: { version: nextVersion },
|
|
17255
|
+
framework: { slug: "nextjs", version: nextVersion },
|
|
17256
17256
|
...deploymentId && { deploymentId }
|
|
17257
17257
|
};
|
|
17258
17258
|
}
|
|
@@ -18619,7 +18619,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
18619
18619
|
]
|
|
18620
18620
|
]
|
|
18621
18621
|
],
|
|
18622
|
-
framework: { version: nextVersion },
|
|
18622
|
+
framework: { slug: "nextjs", version: nextVersion },
|
|
18623
18623
|
...deploymentId && { deploymentId }
|
|
18624
18624
|
};
|
|
18625
18625
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.2",
|
|
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",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"@types/find-up": "4.0.0",
|
|
25
25
|
"@types/fs-extra": "8.0.0",
|
|
26
26
|
"@types/glob": "7.1.3",
|
|
27
|
-
"@types/jest": "29.5.5",
|
|
28
27
|
"@types/next-server": "8.0.0",
|
|
29
28
|
"@types/node": "20.11.0",
|
|
30
29
|
"@types/resolve-from": "5.0.1",
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
"find-up": "4.1.0",
|
|
43
42
|
"fs-extra": "11.2.0",
|
|
44
43
|
"get-port": "5.0.0",
|
|
45
|
-
"
|
|
44
|
+
"ms": "2.1.3",
|
|
46
45
|
"nanoid": "3.3.4",
|
|
47
46
|
"ndjson": "2.0.0",
|
|
48
47
|
"pretty-bytes": "5.3.0",
|
|
@@ -52,18 +51,22 @@
|
|
|
52
51
|
"source-map": "0.7.4",
|
|
53
52
|
"test-listen": "1.1.0",
|
|
54
53
|
"text-table": "0.2.0",
|
|
54
|
+
"vitest": "2.0.3",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/build-utils": "13.
|
|
56
|
+
"@vercel/build-utils": "13.26.0",
|
|
57
57
|
"@vercel/routing-utils": "6.2.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|
|
61
|
-
"test": "
|
|
61
|
+
"test": "vitest run --config ../../vitest.config.mts",
|
|
62
62
|
"test-unit": "pnpm test test/unit/",
|
|
63
63
|
"test-next-local": "pnpm test test/integration/*.test.js test/integration/*.test.ts",
|
|
64
64
|
"test-next-local-legacy": "pnpm test test/integration/legacy/*.test.js",
|
|
65
65
|
"test-next-local:middleware": "pnpm test test/integration/middleware.test.ts",
|
|
66
66
|
"test-e2e": "rm -f test/builder-info.json; pnpm test test/fixtures/**/*.test.js",
|
|
67
|
-
"type-check": "tsc --noEmit"
|
|
67
|
+
"type-check": "tsc --noEmit",
|
|
68
|
+
"vitest-run": "vitest -c ../../vitest.config.mts",
|
|
69
|
+
"vitest-unit": "glob --absolute 'test/unit/'",
|
|
70
|
+
"vitest-e2e": "glob --absolute 'test/fixtures/**/*.test.js'"
|
|
68
71
|
}
|
|
69
72
|
}
|