UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

9 lines (8 loc) 433 B
import type { FetchState } from '../fetch/fetch-state.js'; /** * Handles trailing-slash normalization for incoming requests. If the * request's pathname does not match the manifest's configured * `trailingSlash` policy, a redirect `Response` is returned. Otherwise, * returns `undefined` so the caller can continue processing the request. */ export declare function handleTrailingSlash(state: FetchState): Response | undefined;