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
When using the default IPX provider and setting nitro.static to true in nuxt.config.ts, images will not be found in development.
However, images are correctly generated when running nuxt build and there are no issues in production.
// https://nuxt.com/docs/api/configuration/nuxt-configexportdefaultdefineNuxtConfig({srcDir: 'src',devtools: {enabled: false},app: {head: {title: 'Nuxt Image Example',},},modules: ['@nuxtjs/tailwindcss','@nuxt/image'],compatibilityDate: '2024-07-03',nitro: {// BUG: when setting to true, ipx image path will not be found during devstatic: true,},});
Console error
[Vue Router warn]: No match found for location with path "/_ipx/f_jpeg&s_2048x1366/images/mountains_2.jpg"
Workaround
The current solution is to dynamically set nitro.static to false during development
When using the default IPX provider and setting
nitro.static
totrue
innuxt.config.ts
, images will not be found in development.However, images are correctly generated when running
nuxt build
and there are no issues in production.Reproduction: https://stackblitz.com/edit/github-f66jbi?file=nuxt.config.ts
nuxt.config.ts
Console error
Workaround
The current solution is to dynamically set
nitro.static
tofalse
during developmentExpectation
Using
nitro.static
setting should not be causing issue during developmentThe text was updated successfully, but these errors were encountered: