6 lines
202 B
JavaScript
6 lines
202 B
JavaScript
// A faulty API route to test Sentry's error monitoring
|
|
export default function handler(_req, res) {
|
|
throw new Error("Sentry Example API Route Error");
|
|
res.status(200).json({ name: "John Doe" });
|
|
}
|