Lyliya
Lyliya
NNuxt
Created by Lyliya on 2/7/2025 in #❓・help
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: "./",
},
},
image: {
ipx: {
cdnURL: "./",
},
},
7 replies