-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move the invalidFunctions check before the no-functions one (#194)
- Loading branch information
1 parent
dc74ffe
commit cf43f44
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@cloudflare/next-on-pages': patch | ||
--- | ||
|
||
move the invalidFunctions check before the no-functions one | ||
|
||
currently if a build contains only invalid functions we'd be presenting a log | ||
saying that no function was found and simply return the static assets as if | ||
everything is correct, this is because we check for invalid functions only | ||
after checking if there are any (valid) ones, this change moves the invalid | ||
functions check so that is performed first, making sure that the described case | ||
successfully errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters