From ec2944c6c8e9b28cd99d8d9ee434b652a6ac53b7 Mon Sep 17 00:00:00 2001 From: Zach Gover <9044773+zgover@users.noreply.github.com> Date: Tue, 4 Jan 2022 10:14:58 -0600 Subject: [PATCH] chore(nextjs): removed deprecated target (#8237) --- packages/next/plugins/with-nx.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/next/plugins/with-nx.ts b/packages/next/plugins/with-nx.ts index 7d1e9ee863..83713802af 100644 --- a/packages/next/plugins/with-nx.ts +++ b/packages/next/plugins/with-nx.ts @@ -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: {