mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
26 lines
492 B
JavaScript
26 lines
492 B
JavaScript
|
exports.handler = async () => {
|
||
|
|
||
|
const body = `
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head><title>301 Moved Permanently</title></head>
|
||
|
<body bgcolor="white">
|
||
|
<center><h1>301 Moved Permanently</h1></center>
|
||
|
<hr><center>CloudFront Lambda@Edge</center>
|
||
|
</body>
|
||
|
</html>
|
||
|
`;
|
||
|
|
||
|
return {
|
||
|
status: '301',
|
||
|
statusDescription: `Redirecting to www domain`,
|
||
|
headers: {
|
||
|
location: [ {
|
||
|
key: 'Location',
|
||
|
value: `https://genderdysphoria.fyi`,
|
||
|
} ],
|
||
|
},
|
||
|
body,
|
||
|
};
|
||
|
};
|