From fe67cdbf35040ba80be6fe634427a511261c15ef Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Wed, 17 Aug 2022 17:50:57 -0700 Subject: [PATCH] switch to using proxy loader --- packages/nextjs/src/config/webpack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/src/config/webpack.ts b/packages/nextjs/src/config/webpack.ts index 93b79a1c7313..dcc1b909ab0d 100644 --- a/packages/nextjs/src/config/webpack.ts +++ b/packages/nextjs/src/config/webpack.ts @@ -86,8 +86,8 @@ export function constructWebpackConfigFunction( test: new RegExp(`${escapeStringForRegex(projectDir)}(/src)?/pages/.*\\.(jsx?|tsx?)`), use: [ { - loader: path.resolve(__dirname, 'loaders/dataFetchersLoader.js'), - options: { projectDir, pagesDir }, + loader: path.resolve(__dirname, 'loaders/proxyLoader.js'), + options: { pagesDir }, }, ], });