Remove og image types

This commit is contained in:
Kurt Hutten
2021-08-01 04:45:43 +10:00
parent 6d68b939be
commit 22f3fb6e3e

View File

@@ -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<HandlerResponse> {
async function unwrappedHandler (event, context) {
let path = event.path
.replace(/.+\/og-image-generator/, '')
.replace(/\/og-image-.+\.jpg/, '')