OptionalbasePath to image optimization bundle
OptionaldangerouslyPermit SVG sources through the image-opt pipeline. SVG can carry
arbitrary script payloads; off by default. Mirrors Next.js
images.dangerouslyAllowSVG.
OptionaldomainsAllowlist of remote image hostnames the image-opt service should
fetch from. Mirrors Astro's image.domains and Next.js's
images.domains. Forward-compat: the L3 does not consume this yet —
adapters write it for parity with the originating framework config.
OptionalenvironmentExtra environment variables forwarded to the image-opt Lambda.
The L3 always sets BUCKET_NAME / BUCKET_REGION / BUCKET_KEY_PREFIX
for storage access; this is for framework-specific config (e.g.
IPX_BASE_URL when the user customizes the /_ipx prefix).
Supported formats
Handler entry point
OptionalminimumMinimum cache TTL (in seconds) the image-opt response should
advertise. Mirrors Next.js images.minimumCacheTTL. Wired onto the
image-opt Lambda's env at L3 time.
OptionalremoteMore expressive allowlist than domains. Each entry can scope the
match by protocol/port/path prefix in addition to hostname. Mirrors
Next.js images.remotePatterns.
Max image sizes
Path prefix the image-opt Lambda serves. Defaults to
/_ipxfor Nitro/@nuxt/image projects; users can override viaruntimeConfig.ipx.baseURLin nuxt.config. The CloudFront cache behavior is wired at this path, and the Lambda's request handler uses it to strip the prefix before passing the URL to IPX.