This is a minimal example of Sentry error logging working as middleware in a Koa app, all running under Vercel. Sending GET to localhost:3000/error will send an error to Sentry.