diff --git a/pages/api/error-uncaught.js b/pages/api/error-uncaught.js new file mode 100644 index 0000000..a9d3b3a --- /dev/null +++ b/pages/api/error-uncaught.js @@ -0,0 +1,8 @@ +export default function handler(req, res) { + + // This will blow up + + statusCode = response.statusCode + + res.status(500).json({ error: 'true' }) +} \ No newline at end of file