silverwolf-x/project / packages /next /src /lib /is-interception-route-rewrite.ts
silverwolf-x's picture
download
raw
428 Bytes
import { NEXT_URL } from '../client/components/app-router-headers'
import type { Rewrite } from './load-custom-routes'
import type { DeepReadonly } from '../shared/lib/deep-readonly'
export function isInterceptionRouteRewrite(route: DeepReadonly<Rewrite>) {
// When we generate interception rewrites in the above implementation, we always do so with only a single `has` condition.
return route.has?.[0]?.key === NEXT_URL
}

Xet Storage Details

Size:
428 Bytes
·
Xet hash:
36c3604d7f70c322af9b3d00a424cce8c6915697c6961898b63ebf39b42c2859

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.