Skip to content

Commit

Permalink
fix: config-based schedule without esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
netlify-team-account-1 committed Dec 14, 2021
1 parent 6e09be8 commit 78f6bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/functions/runtimes/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const getBuildFunction = async ({ config, directory, errorExit, func, projectRoo
// main file otherwise.
const functionDirectory = dirname(func.mainFile)
const srcFiles = functionDirectory === directory ? [func.mainFile] : [functionDirectory]
const schedule = config[func.name]?.schedule
const schedule = config.functions[func.name]?.schedule

return () => ({ schedule, srcFiles })
}
Expand Down

0 comments on commit 78f6bbb

Please sign in to comment.