@vercel/next 11.0.4 → 12.0.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 +531 -463
- package/dist/index.js +8 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -13318,6 +13318,12 @@ async function getStaticFiles(entryPath, entryDirectory, outputDirectory) {
|
|
|
13318
13318
|
const staticDirectoryFiles = {};
|
|
13319
13319
|
const publicDirectoryFiles = {};
|
|
13320
13320
|
for (const file of Object.keys(nextStaticFiles)) {
|
|
13321
|
+
if (file.startsWith("immutable/")) {
|
|
13322
|
+
throw new import_build_utils.NowBuildError({
|
|
13323
|
+
message: 'The Next.js build produced files in "_next/static/immutable" while the Next.js adapter was disabled. Use the Next.js Vercel Adapter instead of manually setting supportsImmutableAssets=true.',
|
|
13324
|
+
code: "NEXT_BUILDER_IMMUTABLE_STATIC_FILES"
|
|
13325
|
+
});
|
|
13326
|
+
}
|
|
13321
13327
|
const outputPath = import_path3.default.posix.join(entryDirectory, `_next/static/${file}`);
|
|
13322
13328
|
staticFiles[outputPath] = nextStaticFiles[file];
|
|
13323
13329
|
}
|
|
@@ -17078,7 +17084,8 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
17078
17084
|
}
|
|
17079
17085
|
return {
|
|
17080
17086
|
buildOutputPath: import_path6.default.join(entryPath, outputDirectory, "output"),
|
|
17081
|
-
buildOutputVersion
|
|
17087
|
+
buildOutputVersion,
|
|
17088
|
+
framework: { slug: "nextjs", version: nextVersion }
|
|
17082
17089
|
};
|
|
17083
17090
|
}
|
|
17084
17091
|
const absoluteOutputDirectory = import_path6.default.join(entryPath, outputDirectory);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.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,10 +16,10 @@
|
|
|
16
16
|
"@vercel/nft": "1.10.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@vercel/build-utils": "14.
|
|
19
|
+
"@vercel/build-utils": "14.10.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
22
|
+
"@next-community/adapter-vercel": "0.0.1-beta.31",
|
|
23
23
|
"@types/aws-lambda": "8.10.19",
|
|
24
24
|
"@types/buffer-crc32": "0.2.0",
|
|
25
25
|
"@types/bytes": "3.1.1",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"vite": "6.4.3",
|
|
58
58
|
"vitest": "4.1.10",
|
|
59
59
|
"webpack-sources": "3.2.3",
|
|
60
|
-
"@vercel/build-utils": "14.
|
|
61
|
-
"@vercel/routing-utils": "6.
|
|
60
|
+
"@vercel/build-utils": "14.10.1",
|
|
61
|
+
"@vercel/routing-utils": "6.6.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "node build.mjs",
|