NuxtN
Nuxtβ€’12mo agoβ€’
6 replies
Lyliya

NuxtImage: Relative import

Hey πŸ‘‹

I am currently working on a website that will be deployed on a server subdirectory (like domain/directory). My goal is to build the app using relative path, so I can change the directory later without rebuilding the app ( I guess baseURL does not work for that).
I manage to make the import for /_nuxt/ working using cdnURL: './', but for some reason,
public
images used by <NuxtImage> and the provider ipx does not follow this rule

Is there a way to prepend ./ to the /_ipx/ path ? Something like this
image: {
    ipx: {
      cdnURL: "./",
    },
  },
Was this page helpful?