Compare commits
No commits in common. "main" and "11-02-26-ee4b50" have entirely different histories.
main
...
11-02-26-e
13
handler.js
13
handler.js
|
|
@ -1,13 +0,0 @@
|
||||||
export const handler = async (req, res) => {
|
|
||||||
try {
|
|
||||||
// Sends 'bar' as response
|
|
||||||
res.send(process.env.FOO);
|
|
||||||
} catch (error) {
|
|
||||||
// Handle errors
|
|
||||||
console.error(error);
|
|
||||||
// Send an error response if needed
|
|
||||||
res.statusCode = 500;
|
|
||||||
res.setHeader("Content-Type", "text/plain");
|
|
||||||
res.end("Internal Server Error");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Loading…
Reference in New Issue
Block a user