```js // @noErrors import { applyReroute } from '@sveltejs/kit/adapter'; ``` ## applyReroute
Available since 3.0.0Helps a catch-all request handler pass the request to a different handler if the `reroute` hook has returned a URL pathname that's different from the incoming request. If your adapter is capable of deploying multiple serverless functions, it's a good idea to also deploy a "catch-all" one to handle uncaught requests. Running this in that function allows the app's `reroute` hook to rewrite the request URL and invoke the next appropriate serverless function, if any.