@vercel/next 4.19.0 → 4.19.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 +11 -6
- package/package.json +2 -2
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 || import_constants.AdapterOutputType.PAGES ? "PAGE" : "API";
|
|
9917
|
+
const operationType = output.type === import_constants.AdapterOutputType.APP_PAGE || output.type === 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 (
|
|
10234
|
+
if (_usesSrcCache === void 0) {
|
|
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 (
|
|
10244
|
+
if (_usesSrcCache === void 0) {
|
|
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,7 +10251,10 @@ async function usesSrcDirectory(workPath) {
|
|
|
10251
10251
|
_usesSrcCache = false;
|
|
10252
10252
|
}
|
|
10253
10253
|
}
|
|
10254
|
-
|
|
10254
|
+
if (_usesSrcCache === void 0) {
|
|
10255
|
+
_usesSrcCache = false;
|
|
10256
|
+
}
|
|
10257
|
+
return _usesSrcCache;
|
|
10255
10258
|
}
|
|
10256
10259
|
function isDirectory(path3) {
|
|
10257
10260
|
return import_fs_extra3.default.existsSync(path3) && import_fs_extra3.default.lstatSync(path3).isDirectory();
|
|
@@ -10624,8 +10627,10 @@ if(${cookieCheck}){
|
|
|
10624
10627
|
var myAdapter = {
|
|
10625
10628
|
name: "Vercel",
|
|
10626
10629
|
async modifyConfig(config, ctx) {
|
|
10627
|
-
if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD
|
|
10628
|
-
config.experimental.supportsImmutableAssets = true
|
|
10630
|
+
if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD) {
|
|
10631
|
+
config.experimental.supportsImmutableAssets = // Default to true, allow users to opt-out
|
|
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";
|
|
10629
10634
|
}
|
|
10630
10635
|
if (process.env.VERCEL_HASH_SALT != null) {
|
|
10631
10636
|
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.19.
|
|
3
|
+
"version": "4.19.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.23",
|
|
20
20
|
"@types/aws-lambda": "8.10.19",
|
|
21
21
|
"@types/buffer-crc32": "0.2.0",
|
|
22
22
|
"@types/bytes": "3.1.1",
|