Skip to content

Commit

Permalink
fix images on edit frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Nov 28, 2024
1 parent b0fb9a2 commit 3112710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nuxt-blog-starter/composables/imageProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function imageProps(block, bgStyles=false) {
}
}
image_url = image_url.startsWith("/") ? `https://hydra-api.pretagov.com${image_url}`: image_url;
if (!runtimeConfig.isedit) {
if (!runtimeConfig.public.isedit) {
// in edit mode we are SPA so this won't work
image_url = image_url.replace("https://hydra-api.pretagov.com", "/_plone_"); // nuxt image alias
}
Expand Down

0 comments on commit 3112710

Please sign in to comment.