1
0
Fork 0
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:
Tim Neutkens 2018-04-23 13:27:53 -07:00 committed by GitHub
parent 23716d4487
commit 0f2c8f5eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,8 @@ export default async function (dir, options, configuration) {
const defaultPathMap = {}
for (const page of pages) {
if (page === '/_document') {
// _document and _app are not real pages.
if (page === '/_document' || page === '/_app') {
continue
}
defaultPathMap[page] = { page }