From 22f3fb6e3e0f895e1051cc758ddc424b674898d7 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Sun, 1 Aug 2021 04:45:43 +1000 Subject: [PATCH] Remove og image types --- app/api/src/functions/og-image-generator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api/src/functions/og-image-generator.ts b/app/api/src/functions/og-image-generator.ts index 4a50e47..791a27c 100644 --- a/app/api/src/functions/og-image-generator.ts +++ b/app/api/src/functions/og-image-generator.ts @@ -1,12 +1,11 @@ import { builder } from '@netlify/functions' -import type { HandlerResponse } from '@netlify/functions' const { headless, executablePath, puppeteer} = require('chrome-aws-lambda') const captureWidth = 1200 const captureHeight = 630 const clipY = 0 -async function unwrappedHandler (event, context): Promise { +async function unwrappedHandler (event, context) { let path = event.path .replace(/.+\/og-image-generator/, '') .replace(/\/og-image-.+\.jpg/, '')