Skip to content

Commit

Permalink
Update prerender lambda check
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Oct 22, 2020
1 parent d80937e commit b4ffcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/now-next/src/index.ts
Expand Up @@ -1764,7 +1764,7 @@ export const build = async ({
}
}

if (prerenders[outputPathPage] == null && initialRevalidate !== false) {
if (prerenders[outputPathPage] == null && !isNotFound) {
if (lambda == null) {
throw new NowBuildError({
code: 'NEXT_MISSING_LAMBDA',
Expand Down

0 comments on commit b4ffcb5

Please sign in to comment.