Hashmode, dynamic asset url
Hey there!
I'm using a component from a layer which use a public image, which src is based on some conditions.
On my component, it looks like somethings like this:
Once I run
I guess as image source are defined at runtime, url cannot be converted at buildTime. Is there a way for me to detect that hashMode has been enable, then provide the expected source (ie,
I'm using a component from a layer which use a public image, which src is based on some conditions.
On my component, it looks like somethings like this:
Once I run
npx nuxi generate, everything seems fine and app is running, BUT, where my custom component is loaded, image urls are not converted into ./$src.I guess as image source are defined at runtime, url cannot be converted at buildTime. Is there a way for me to detect that hashMode has been enable, then provide the expected source (ie,
./$src)?