You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref(nextjs): Remove redundant pagesDirectory variable in webpack config (#6044)
This removes the `pagesDirectory` variable in the nextjs SDK's `constructWebpackConfigFunction` function, as its computed value matches that of `pagesDir` a few lines above, which we read from nextjs config.
constpagesDirectory=shouldIncludeSrcDirectory// We're intentionally not including slashes in the paths because we wanne let node do the path resolution for Windows
90
-
? path.resolve(projectDir,'src','pages')
91
-
: path.resolve(projectDir,'pages');
92
-
93
85
// Default page extensions per https://github.com/vercel/next.js/blob/f1dbc9260d48c7995f6c52f8fbcc65f08e627992/packages/next/server/config-shared.ts#L161
0 commit comments