redirect()

A server function can send the router somewhere else

The link below opens this same route with run set. The loader then awaits redirectToSsr(). That function throws redirect() to /ssr. The router follows the redirect, so this page does not render for that visit. You land on the SSR example instead.

Run the redirect

All examples