mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): don't joinURL
with remote sources on NuxtIsland (#23093)
This commit is contained in:
parent
6645b4f088
commit
dfdebf2919
@ -117,7 +117,7 @@ export default defineComponent({
|
||||
}
|
||||
// TODO: Validate response
|
||||
// $fetch handles the app.baseURL in dev
|
||||
const r = await eventFetch(withQuery(import.meta.dev && import.meta.client ? url : joinURL(config.app.baseURL ?? '', url), {
|
||||
const r = await eventFetch(withQuery(((import.meta.dev && import.meta.client) || props.source) ? url : joinURL(config.app.baseURL ?? '', url), {
|
||||
...props.context,
|
||||
props: props.props ? JSON.stringify(props.props) : undefined
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user