Skip to content

Commit

Permalink
switch to using proxy loader
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Aug 19, 2022
1 parent 848f03f commit fe67cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/src/config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
],
});
Expand Down

0 comments on commit fe67cdb

Please sign in to comment.