Skip to content

Commit

Permalink
fix: ignore config blocks for undefined functions (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Mar 14, 2023
1 parent 7c893a7 commit 599c677
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ const generateManifest = ({
)

for (const [name, { excludedPath, onError }] of Object.entries(functionConfig)) {
// If the config block is for a function that is not defined, discard it.
if (manifestFunctionConfig[name] === undefined) {
continue
}

if (excludedPath) {
const paths = Array.isArray(excludedPath) ? excludedPath : [excludedPath]
const excludedPatterns = paths.map(pathToRegularExpression).map(serializePattern)
Expand Down

0 comments on commit 599c677

Please sign in to comment.