[next] Update payload flag (#10147)

x-ref: [slack thread](https://vercel.slack.com/archives/C05E6RJTPJS/p1687898295532579)
This commit is contained in:
JJ Kasper
2023-06-27 16:34:21 -07:00
committed by GitHub
parent 733ff5ed85
commit e4895d979b
4 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
"@vercel/next": patch
---
[next] Update payload flag

View File

@@ -1092,7 +1092,7 @@ export const build: BuildV2 = async ({
operationType: 'Page', // always Page because we're in legacy mode operationType: 'Page', // always Page because we're in legacy mode
shouldAddHelpers: false, shouldAddHelpers: false,
shouldAddSourcemapSupport: false, shouldAddSourcemapSupport: false,
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD, supportsMultiPayloads: true,
framework: { framework: {
slug: 'nextjs', slug: 'nextjs',
version: nextVersion, version: nextVersion,

View File

@@ -821,7 +821,7 @@ export async function createLambdaFromPseudoLayers({
files, files,
shouldAddHelpers: false, shouldAddHelpers: false,
shouldAddSourcemapSupport: false, shouldAddSourcemapSupport: false,
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD, supportsMultiPayloads: true,
framework: { framework: {
slug: 'nextjs', slug: 'nextjs',
version: nextVersion, version: nextVersion,

View File

@@ -2,11 +2,6 @@
"version": 2, "version": 2,
"uploadNowJson": true, "uploadNowJson": true,
"builds": [{ "src": "package.json", "use": "@vercel/next" }], "builds": [{ "src": "package.json", "use": "@vercel/next" }],
"build": {
"env": {
"NEXT_PRIVATE_MULTI_PAYLOAD": "1"
}
},
"probes": [ "probes": [
{ {
"path": "/lambda", "path": "/lambda",