This issue https://github.com/sveltejs/kit/pull/14402 was discovered when trying to call `redirect()` in a remote function with the setup that this demo proposes.