Unverified Commit ef903a25 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Add static page marker to page info (#7552)

parent 3b66fd3b
......@@ -305,6 +305,8 @@ export default async function build(dir: string, conf = null): Promise<void> {
bundleRelative
)
let isStatic = false
if (autoExport) {
pagesManifest[page] = bundleRelative.replace(/\\/g, '/')
......@@ -336,11 +338,12 @@ export default async function build(dir: string, conf = null): Promise<void> {
if (customAppGetInitialProps === false && nonReservedPage) {
if (isPageStatic(serverBundle, runtimeEnvConfig)) {
staticPages.add(page)
isStatic = true
}
}
}
pageInfos.set(page, { size, chunks, serverBundle })
pageInfos.set(page, { size, chunks, serverBundle, static: isStatic })
}
if (Array.isArray(configs[0].plugins)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment