@vercel/next 4.20.0 → 4.20.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 +6 -11
- package/package.json +4 -4
package/dist/adapter/index.js
CHANGED
|
@@ -9914,7 +9914,7 @@ async function handleNodeOutputs(nodeOutputs, {
|
|
|
9914
9914
|
if (filesHashes) {
|
|
9915
9915
|
filesHashes["___next_launcher.cjs"] = sha256(handlerSource);
|
|
9916
9916
|
}
|
|
9917
|
-
const operationType = output.type === import_constants.AdapterOutputType.APP_PAGE ||
|
|
9917
|
+
const operationType = output.type === import_constants.AdapterOutputType.APP_PAGE || import_constants.AdapterOutputType.PAGES ? "PAGE" : "API";
|
|
9918
9918
|
const sourceFile = await getSourceFilePathFromPage({
|
|
9919
9919
|
workPath: projectDir,
|
|
9920
9920
|
page: output.sourcePage,
|
|
@@ -10231,7 +10231,7 @@ async function handleMiddleware(output, ctx) {
|
|
|
10231
10231
|
}
|
|
10232
10232
|
var _usesSrcCache;
|
|
10233
10233
|
async function usesSrcDirectory(workPath) {
|
|
10234
|
-
if (_usesSrcCache
|
|
10234
|
+
if (!_usesSrcCache) {
|
|
10235
10235
|
const sourcePages = import_node_path.default.join(workPath, "src", "pages");
|
|
10236
10236
|
try {
|
|
10237
10237
|
if ((await import_promises.default.stat(sourcePages)).isDirectory()) {
|
|
@@ -10241,7 +10241,7 @@ async function usesSrcDirectory(workPath) {
|
|
|
10241
10241
|
_usesSrcCache = false;
|
|
10242
10242
|
}
|
|
10243
10243
|
}
|
|
10244
|
-
if (_usesSrcCache
|
|
10244
|
+
if (!_usesSrcCache) {
|
|
10245
10245
|
const sourceAppdir = import_node_path.default.join(workPath, "src", "app");
|
|
10246
10246
|
try {
|
|
10247
10247
|
if ((await import_promises.default.stat(sourceAppdir)).isDirectory()) {
|
|
@@ -10251,10 +10251,7 @@ async function usesSrcDirectory(workPath) {
|
|
|
10251
10251
|
_usesSrcCache = false;
|
|
10252
10252
|
}
|
|
10253
10253
|
}
|
|
10254
|
-
|
|
10255
|
-
_usesSrcCache = false;
|
|
10256
|
-
}
|
|
10257
|
-
return _usesSrcCache;
|
|
10254
|
+
return Boolean(_usesSrcCache);
|
|
10258
10255
|
}
|
|
10259
10256
|
function isDirectory(path3) {
|
|
10260
10257
|
return import_fs_extra3.default.existsSync(path3) && import_fs_extra3.default.lstatSync(path3).isDirectory();
|
|
@@ -10627,10 +10624,8 @@ if(${cookieCheck}){
|
|
|
10627
10624
|
var myAdapter = {
|
|
10628
10625
|
name: "Vercel",
|
|
10629
10626
|
async modifyConfig(config, ctx) {
|
|
10630
|
-
if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD) {
|
|
10631
|
-
config.experimental.supportsImmutableAssets =
|
|
10632
|
-
(config.experimental.supportsImmutableAssets ?? true) && // AND with infra support to allow disabling via feature flag if necessary.
|
|
10633
|
-
process.env.VERCEL_IMMUTABLE_STATIC_FILES_ENABLED === "1";
|
|
10627
|
+
if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD && process.env.VERCEL_IMMUTABLE_STATIC_FILES_ENABLED === "1") {
|
|
10628
|
+
config.experimental.supportsImmutableAssets = true;
|
|
10634
10629
|
}
|
|
10635
10630
|
if (process.env.VERCEL_HASH_SALT != null) {
|
|
10636
10631
|
config.experimental.outputHashSalt = (config.experimental.outputHashSalt ?? "") + process.env.VERCEL_HASH_SALT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.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.10.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
19
|
+
"@next-community/adapter-vercel": "0.0.1-beta.22",
|
|
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
|
"text-table": "0.2.0",
|
|
54
54
|
"vitest": "2.0.3",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/
|
|
57
|
-
"@vercel/
|
|
56
|
+
"@vercel/routing-utils": "6.3.1",
|
|
57
|
+
"@vercel/build-utils": "13.32.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|