Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/nodejs.org
/ normalizeSrc
Function
normalizeSrc
apps/site/cloudflare/image-loader.ts:3–5 ·
view source on GitHub ↗
(src: string)
Source
from the content-addressed store, hash-verified
1
import
type
{ ImageLoaderProps } from
'next/image'
;
2
3
const
normalizeSrc = (src: string) => {
4
return
src.startsWith(
'/'
) ? src.slice(1) : src;
5
};
6
7
export
default
function
cloudflareLoader({
8
src,
Callers
1
cloudflareLoader
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected