chore: update nuxt to 3.11.0 (#2692)

This commit is contained in:
Joaquín Sánchez 2024-03-17 15:32:02 +01:00 committed by GitHub
parent 21d5633233
commit ded2e0f3d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 1434 additions and 1356 deletions

View file

@ -55,10 +55,15 @@ export default defineNuxtPlugin(async () => {
const localCall = createCall(toNodeListener(h3App) as any)
const localFetch = createLocalFetch(localCall, globalThis.fetch)
// eslint-disable-next-line ts/prefer-ts-expect-error
// @ts-ignore error TS2321: Excessive stack depth comparing types
globalThis.$fetch = createFetch({
// @ts-expect-error slight differences in api
// eslint-disable-next-line ts/prefer-ts-expect-error
// @ts-ignore slight differences in api
fetch: localFetch,
Headers,
// eslint-disable-next-line ts/prefer-ts-expect-error
// @ts-ignore error TS2321: Excessive stack depth comparing types
defaults: { baseURL: config.app.baseURL },
})