@vercel/next
Advanced tools
Comparing version 2.5.5-canary.6 to 2.5.5-canary.7
@@ -11,4 +11,4 @@ "use strict"; | ||
if (!process.env.NODE_ENV) { | ||
process.env.NODE_ENV = | ||
process.env.NOW_REGION === 'dev1' ? 'development' : 'production'; | ||
const region = process.env.VERCEL_REGION || process.env.NOW_REGION; | ||
process.env.NODE_ENV = region === 'dev1' ? 'development' : 'production'; | ||
} | ||
@@ -15,0 +15,0 @@ const app = next_server_1.default({}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (!process.env.NODE_ENV) { | ||
process.env.NODE_ENV = | ||
process.env.NOW_REGION === 'dev1' ? 'development' : 'production'; | ||
const region = process.env.VERCEL_REGION || process.env.NOW_REGION; | ||
process.env.NODE_ENV = region === 'dev1' ? 'development' : 'production'; | ||
} | ||
@@ -7,0 +7,0 @@ const http_1 = require("http"); |
@@ -31,3 +31,3 @@ "use strict"; | ||
message: 'Specified "src" for "@vercel/next" has to be "package.json" or "next.config.js"', | ||
code: 'NOW_NEXT_INCORRECT_SRC', | ||
code: 'NEXT_INCORRECT_SRC', | ||
}); | ||
@@ -246,3 +246,3 @@ } | ||
link: 'https://err.sh/zeit/now/now-next-routes-manifest', | ||
code: 'NOW_NEXT_NO_ROUTES_MANIFEST', | ||
code: 'NEXT_NO_ROUTES_MANIFEST', | ||
}); | ||
@@ -280,3 +280,3 @@ } | ||
'Please upgrade your `@vercel/next` builder and try again. Contact support if this continues to happen.', | ||
code: 'NOW_NEXT_VERSION_UPGRADE', | ||
code: 'NEXT_VERSION_UPGRADE', | ||
}); | ||
@@ -310,3 +310,3 @@ } | ||
message: 'Found usage of dynamic routes but not on a new enough version of Next.js.', | ||
code: 'NOW_NEXT_DYNAMIC_ROUTES_OUTDATED', | ||
code: 'NEXT_DYNAMIC_ROUTES_OUTDATED', | ||
}); | ||
@@ -313,0 +313,0 @@ } |
{ | ||
"name": "@vercel/next", | ||
"version": "2.5.5-canary.6", | ||
"version": "2.5.5-canary.7", | ||
"license": "MIT", | ||
@@ -39,3 +39,3 @@ "main": "./dist/index", | ||
}, | ||
"gitHead": "898478d1e1712a761c6e87878ef6831c2a793767" | ||
"gitHead": "2e0cee490d06c582896f2467ddfb422cfe99327d" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5
1344704
30