本页还没有译文
本页 5 段还没译成日本語,下面显示的是英文原文。@sveltejs-kit-adapter
还没翻译译自英文(svelte.dev)本页 5 段都还没译
import { applyReroute } from '@sveltejs/kit/adapter';applyReroute
Available since 3.0.0
Helps 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.
function applyReroute(
response: Response,
next: (url: URL) => Response | Promise<Response>
): Response | Promise<Response>;AI 翻译查看英文原文