Skip to content

Commit fe67cdb

Browse files
committed
switch to using proxy loader
1 parent 848f03f commit fe67cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nextjs/src/config/webpack.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export function constructWebpackConfigFunction(
8686
test: new RegExp(`${escapeStringForRegex(projectDir)}(/src)?/pages/.*\\.(jsx?|tsx?)`),
8787
use: [
8888
{
89-
loader: path.resolve(__dirname, 'loaders/dataFetchersLoader.js'),
90-
options: { projectDir, pagesDir },
89+
loader: path.resolve(__dirname, 'loaders/proxyLoader.js'),
90+
options: { pagesDir },
9191
},
9292
],
9393
});

0 commit comments

Comments
 (0)