diff --git a/site/src/routes/chat.js b/site/src/routes/chat.js index 2fdeda2675..7db1ae506d 100644 --- a/site/src/routes/chat.js +++ b/site/src/routes/chat.js @@ -1,4 +1,6 @@ -export function get(req, res) { - res.writeHead(302, { Location: 'https://discord.gg/yy75DKs' }); - res.end(); -} \ No newline at end of file +export function get() { + return { + status: 302, + headers: { Location: 'https://discord.gg/yy75DKs' }, + }; +}