mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Exclude _app.js since it’s not a normal page (#4201)
This commit is contained in:
parent
23716d4487
commit
0f2c8f5eb1
|
@ -29,7 +29,8 @@ export default async function (dir, options, configuration) {
|
||||||
const defaultPathMap = {}
|
const defaultPathMap = {}
|
||||||
|
|
||||||
for (const page of pages) {
|
for (const page of pages) {
|
||||||
if (page === '/_document') {
|
// _document and _app are not real pages.
|
||||||
|
if (page === '/_document' || page === '/_app') {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
defaultPathMap[page] = { page }
|
defaultPathMap[page] = { page }
|
||||||
|
|
Loading…
Reference in a new issue