remove dependencies
This commit is contained in:
@@ -3,17 +3,15 @@
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@netlify/functions": "^0.7.2",
|
||||
"@redwoodjs/api": "^0.34.1",
|
||||
"@sentry/node": "^6.5.1",
|
||||
"chrome-aws-lambda": "^9.1.0",
|
||||
"chrome-aws-lambda": "9.1.0",
|
||||
"cloudinary": "^1.23.0",
|
||||
"human-id": "^2.0.1",
|
||||
"nodemailer": "^6.6.2",
|
||||
"puppeteer-core": "^9.1.1"
|
||||
"puppeteer-core": "9.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"puppeteer": "^9.1.1",
|
||||
"@netlify/functions": "^0.7.2",
|
||||
"@types/nodemailer": "^6.4.2"
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { builder } from '@netlify/functions'
|
||||
import type { HandlerResponse } from '@netlify/functions'
|
||||
import chromium from '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/, '')
|
||||
|
||||
Reference in New Issue
Block a user