You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Environment variable NEXT_IMAGE_ALLOWED_DOMAINS declared in netlify.toml for image handling is ignored. If it's declared in Netlify UI works fine.
or
gives a 403 error "Image is not from a permitted domain" ❌
Hi. This is apparently a known issue with env vars in the toml that I didn't know about until today! I will update our docs to make that clear, and then look into a better way of handling this config.
Describe the bug
Environment variable NEXT_IMAGE_ALLOWED_DOMAINS declared in netlify.toml for image handling is ignored. If it's declared in Netlify UI works fine.
or
gives a 403 error "Image is not from a permitted domain" ❌
no "Image is not from a permitted domain" error ✔
To Reproduce
Repository: https://github.com/Marcelo-Figueiredo/next-plugin-issue
Steps to reproduce the behavior:
src="https://randomuser.me/api/portraits/men/75.jpg"
NEXT_IMAGE_ALLOWED_DOMAINS = "randomuser.me"
variable in netlify.tomlExpected behavior
There should be no error if NEXT_IMAGE_ALLOWED_DOMAINS is declared in netlify.toml
Versions
If you're using file-based installation
The text was updated successfully, but these errors were encountered: