-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: netlifyRelated to the Netlify adapterRelated to the Netlify adapter
Description
Astro Info
Astro v5.15.8
Node v24.10.0
System macOS (arm64)
Package Manager unknown
Output static
Adapter @astrojs/netlify
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Hello, I am using the Netlify adapter with the devFeatures option to disable the local Netlify Image CDN during local development, following the instructions from https://astro.build/blog/astro-5120/. However, it appears that the setting is being ignored. Setting imageCDN to false does work once deployed to Nelify.
If I inspect the image on the console, I see "/.netlify/images?" being added to the source. What am I missing? This looks very straightforward, thanks.
This is my astro.config.mjs:
import { defineConfig } from 'astro/config'
import netlify from '@astrojs/netlify'
export default defineConfig({
adapter: netlify({
imageCDN: false,
devFeatures: {
images: false,
environmentVariables: false,
},
})
})
What's the expected result?
Images not to be served via Netlify CDN
Link to Minimal Reproducible Example
https://github.com/jmgala/disable-local-Netlify-Image-CDN
Participation
- I am willing to submit a pull request for this issue.
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: netlifyRelated to the Netlify adapterRelated to the Netlify adapter