Redirect directly without loading an HTML first
return {
statusCode: 302, // replace with 301 if you want browsers and crawlers to remember that redirect and not go through this every time
headers: { 'Content-Type': 'text/plain', 'Location': '/my-other-page' },
body: 'Found'
};