Skip to content
Discussion options

You must be logged in to vote

In that case you can create a wrapper composable:

import type { UseFetchOptions } from '#app'
const useMyFetch = (url: string, options: UseFetchOptions<unknown>) => useFetch(url, { baseURL: 'https://my.api/', ...options })

Replies: 0 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@frbuceta
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@danielroe
Comment options

@nlvedwin
Comment options

@danielroe
Comment options

@lucassimines
Comment options

@peterkimzz
Comment options

Answer selected by nlvedwin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 participants