Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal images not displaying when provider is set to 'ipx' (default) #1424

Open
m-shum opened this issue Aug 9, 2024 · 0 comments
Open

Comments

@m-shum
Copy link

m-shum commented Aug 9, 2024

Issue Description

Our build is deployed on Netlify, but our assets are external. Omitting .provider in Nuxt Image config automatically sets Netlify as the provider and breaks all external URLs even if the domain for those external assets is provided in the .domains array in Nuxt Image config.

I have tried explicitly setting netlify as the provider and adding a baseURL, however, external images are still broken in deployment.


Nuxt Image config:

  image: {
    // Options
    formats: ['webp'],
    domains: ['xxx.xxx.com', 'xxx.xxx.com'],
    provider: 'ipx',
    quality: 80,
  },

Setting .provider to 'ipx' (the default) fixes the external image issue, but breaks internal images even if they're housed inside the public directory without subfolders.

How do we set up the default provider with external images? The documentation simply says to place all assets inside the public directory.

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

No branches or pull requests

1 participant