chore(nextjs): removed deprecated target (#8237)

This commit is contained in:
Zach Gover 2022-01-04 10:14:58 -06:00 committed by GitHub
parent 7e99073f5b
commit ec2944c6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,17 +23,6 @@ function regexEqual(x, y) {
}
function withNx(nextConfig = {} as WithNxOptions) {
/**
* In collaboration with Vercel themselves, we have been advised to set the "experimental-serverless-trace" target
* if we detect that the build is running on Vercel to allow for the most ergonomic configuration for Vercel users.
*/
if (process.env.NOW_BUILDER) {
console.log(
'withNx() plugin: Detected Vercel build environment, applying "experimental-serverless-trace" target'
);
nextConfig.target = 'experimental-serverless-trace';
}
const userWebpack = nextConfig.webpack || ((x) => x);
return {
eslint: {