honeybadger-io / nextjs-with-honeybadger

This is an example of how to use Honeybadger to catch & report errors on both client + server side in Next.js.
15 stars 5 forks source link

Add API/serverless routes examples #2

Open joshuap opened 3 years ago

joshuap commented 3 years ago

See here:

https://vercel.com/docs/serverless-functions/introduction#deploying-serverless-functions

klausbadelt commented 3 years ago

Agree - your "server" code is not serverless but build-time. Does Honeybadger work with that?

klausbadelt commented 3 years ago

Wait @joshuap - sorry if I misunderstood - you're with Honeybadger and are asking "us" to help?

joshuap commented 3 years ago

Agree - your "server" code is not serverless but build-time. Does Honeybadger work with that?

@klausbadelt honeybadger.js should work with serverless API routes; this example just doesn't demonstrate that yet.

Wait @joshuap - sorry if I misunderstood - you're with Honeybadger and are asking "us" to help?

I am with Honeybadger. Not quite sure what you mean.

klausbadelt commented 3 years ago

Great thanks for responding so quickly.

joshuap commented 3 years ago

Sure, no problem. If you have any trouble with Next.js/Vercel, comment back here or email support@honeybadger.io and I'll take a look.