diff --git a/src/runtime/utils/fetch.ts b/src/runtime/utils/fetch.ts index 2651a539..644c272e 100644 --- a/src/runtime/utils/fetch.ts +++ b/src/runtime/utils/fetch.ts @@ -7,8 +7,8 @@ export const _fetch = async ( path: string, fetchOptions?: Parameters[1] ): Promise => { - const joinedPath = await callWithNuxt(nuxt, () => joinPathToApiURL(path)) try { + const joinedPath = await callWithNuxt(nuxt, () => joinPathToApiURL(path)) return $fetch(joinedPath, fetchOptions) } catch (error) { // TODO: Adapt this error to be more generic