MCPcopy Create free account
hub / github.com/vercel/vercel / getContentTypeFromFile

Function getContentTypeFromFile

packages/next/src/metadata.ts:138–141  ·  view source on GitHub ↗
(fileRef: FileFsRef)

Source from the content-addressed store, hash-verified

136}
137
138export function getContentTypeFromFile(fileRef: FileFsRef): string | undefined {
139 const ext = path.extname(fileRef.fsPath).slice(1);
140 return CONTENT_TYPE_MAP[ext];
141}
142
143export function getSourceFileRefOfStaticMetadata(
144 routeKey: string,

Callers 1

onPrerenderRouteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected