We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d050407 commit 652e137Copy full SHA for 652e137
packages/nextjs/src/config/webpack.ts
@@ -95,7 +95,7 @@ export function constructWebpackConfigFunction(
95
// Nextjs allows the `pages` folder to optionally live inside a `src` folder
96
test: new RegExp(
97
`${escapeStringForRegex(projectDir)}${
98
- shouldIncludeSrcDirectory ? '(/src)?' : ''
+ shouldIncludeSrcDirectory ? '/src' : ''
99
}/pages/.*\\.(${pageExtensionRegex})`,
100
),
101
use: [
0 commit comments