From ddb5c752acd362ef7f1103f17f299fe8c8cedda9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Thu, 6 Jul 2023 12:02:29 +0200 Subject: [PATCH] Specify local files to include --- app.ts => appFn.ts | 0 netlify.toml | 1 + netlify/functions/index.ts | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename app.ts => appFn.ts (100%) 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');