@vercel/build-utils
Advanced tools
Comparing version 2.9.1-canary.8 to 2.9.1-canary.9
@@ -214,6 +214,8 @@ "use strict"; | ||
builders.push(frontendBuilder); | ||
if (hasNextApiFiles && apiBuilders.length) { | ||
if (hasNextApiFiles && apiBuilders.some(b => b.use === '@vercel/node')) { | ||
warnings.push({ | ||
code: 'conflicting_files', | ||
message: 'It is not possible to use `api` and `pages/api` at the same time, please only use one option', | ||
message: 'When using Next.js, it is recommended to place Node.js Serverless Functions inside of the `pages/api` (provided by Next.js) directory instead of `api` (provided by Vercel).', | ||
link: 'https://nextjs.org/docs/api-routes/introduction', | ||
action: 'Learn More', | ||
}); | ||
@@ -220,0 +222,0 @@ } |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "2.9.1-canary.8", | ||
"version": "2.9.1-canary.9", | ||
"license": "MIT", | ||
@@ -53,3 +53,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "84e828a0ca542f370bb0932dc62c0e0330d8d589" | ||
"gitHead": "115ae0a2291d9a4b6f8319acca24680fb187772c" | ||
} |
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
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
1217208
29269