Skip to content

NUXT_APP_CDN_URL ignored when serving images #635

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

Closed
IlyaSemenov opened this issue Nov 24, 2022 · 1 comment · Fixed by #1303
Closed

NUXT_APP_CDN_URL ignored when serving images #635

IlyaSemenov opened this issue Nov 24, 2022 · 1 comment · Fixed by #1303

Comments

@IlyaSemenov
Copy link
Contributor

Environment

  • Operating System: Darwin
  • Node Version: v16.15.0
  • Nuxt Version: 2.16.0-27720022.54e852f
  • Nitro Version: 0.6.1
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: serverHandlers, devServerHandlers, typescript, bridge, buildModules
  • Runtime Modules: -
  • Build Modules: (), @nuxt/[email protected]

Reproduction

https://github.com/IlyaSemenov/nuxt-cdn-images-ignored

Describe the bug

When I start the production build with NUXT_APP_CDN_URL, it is used to serve scripts but images are still loaded from /_nuxt/ (not from CDN).

Additional context

In Nuxt 3, images are also loaded from NUXT_APP_CDN_URL (see folder nuxt3 in the reproduction repo) so this is a regression.

Logs

No response

@uoorak
Copy link

uoorak commented Jun 11, 2024

I have the same question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants