MCPcopy
hub / github.com/vercel/next.js / isNextFont

Function isNextFont

packages/next/src/server/lib/router-server.ts:65–66  ·  view source on GitHub ↗
(pathname: string | null)

Source from the content-addressed store, hash-verified

63
64const debug = setupDebug('next:router-server:main')
65const isNextFont = (pathname: string | null) =>
66 pathname && /\/media\/[^/]+\.(woff|woff2|eot|ttf|otf)$/.test(pathname)
67
68export type RenderServer = Pick<
69 typeof import('./render-server'),

Callers 1

handleRequestFunction · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…