Using fastify
library I want to be redirected to a web-page.
Looking at all the examples in docs, it seems like it covers only route-to-route redirection.
fastify.post('/v1/launch', async (req, res) => {
response.redirect('/empty-cart');
});
The code above results in 404 error trying to find that route.
But how it can be redirected to external page? Thanks!
Update:
Trying to redirect to https://my-domain.com/empty-cart
with ERR_NAME_NOT_RESOLVED
error