diff --git a/app.ts b/appFn.ts similarity index 100% rename from app.ts rename to appFn.ts diff --git a/netlify.toml b/netlify.toml index 748be02..832a276 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,2 +1,3 @@ [functions] + included_files = ["appFn.ts", "getPlaylistIdFromUrl.ts"] external_node_modules = ["@probot/adapter-aws-lambda-serverless", "probot", "express", "keyv", "formidable"] \ No newline at end of file diff --git a/netlify/functions/index.ts b/netlify/functions/index.ts index 3d4781d..db6f66b 100644 --- a/netlify/functions/index.ts +++ b/netlify/functions/index.ts @@ -3,7 +3,7 @@ import { createProbot } from '@probot/adapter-aws-lambda-serverless'; -import { appFn } from '../../app'; +import { appFn } from '../../appFn'; const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');