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

Function getImageOptimizerPath

test/development/basic/allowed-dev-origins.test.ts:35–40  ·  view source on GitHub ↗
(basePath: string)

Source from the content-addressed store, hash-verified

33}
34
35function getImageOptimizerPath(basePath: string) {
36 return withBasePath(
37 basePath,
38 `/_next/image?url=${encodeURIComponent(withBasePath(basePath, '/image.png'))}&w=256&q=75`
39 )
40}
41
42function requestInternalDevScript(
43 appPort: string | number,

Callers 1

Calls 2

withBasePathFunction · 0.85
encodeURIComponentFunction · 0.85

Tested by

no test coverage detected