diff --git a/src/module.ts b/src/module.ts index fd8ff472..a6d9bcfb 100644 --- a/src/module.ts +++ b/src/module.ts @@ -1,5 +1,5 @@ import { join } from 'pathe' -import { withTrailingSlash } from 'ufo' +import { joinURL } from 'ufo' import { defineNuxtModule, installModule, @@ -142,7 +142,7 @@ export default defineNuxtModule({ category: 'modules', view: { type: 'iframe', - src: withTrailingSlash(viewerConfig.endpoint), + src: joinURL(nuxt.options.app?.baseURL, viewerConfig.endpoint), }, }) })