Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@scottyzen
Copy link
Contributor

@scottyzen scottyzen commented Apr 21, 2024

  • Add NUXT_IMAGE_DOMAINS environment variable to allow users to set the domains from an environment variable.
  • Update documentation on providers.md and provide an example.
  • Spelling of proccessed to processed

Update providers.md with instructions for setting the domain using environment variable
@scottyzen scottyzen changed the title Add setting the domains using the NUXT_IMAGE_DOMAINS environment variable Add NUXT_IMAGE_DOMAINS environment variable Apr 22, 2024
@scottyzen scottyzen marked this pull request as ready for review April 22, 2024 00:12
@danielroe
Copy link
Member

Would you explain a bit more about why this would be needed?

@scottyzen
Copy link
Contributor Author

scottyzen commented Apr 22, 2024

Hi @danielroe,

Sure, It's more of a "nice to have" than needed. It plays well with the NUXT_IMAGE_PROVIDER env variable that's already there. Most of the time those images are coming from a remote source so the domains need to be listed in the image options. This extra env variable just means to don't need to have any setting in your nuxt-config file for remote images to work.

@danielroe danielroe changed the title Add NUXT_IMAGE_DOMAINS environment variable feat: support setting remote images at build-time with NUXT_IMAGE_DOMAINS Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants