fix: upgrade & downupgrade deps
This commit is contained in:
parent
d7bba4dbc9
commit
7545921385
11 changed files with 991 additions and 798 deletions
|
@ -56,7 +56,6 @@ export default defineNuxtModule<VitePWANuxtOptions>({
|
|||
|
||||
Object.keys(webmanifests!).map(wm => [wm, `manifest-${wm}.webmanifest`]).forEach(([wm, fileName]) => {
|
||||
bundle[fileName] = {
|
||||
isAsset: true,
|
||||
type: 'asset',
|
||||
name: undefined,
|
||||
source: generateManifest(wm),
|
||||
|
|
|
@ -4,6 +4,7 @@ import {
|
|||
defineLazyEventHandler,
|
||||
toNodeListener,
|
||||
} from 'h3'
|
||||
import type { FetchResponse } from 'ofetch'
|
||||
import { createFetch } from 'ofetch'
|
||||
import {
|
||||
createCall,
|
||||
|
@ -64,7 +65,7 @@ export default defineNuxtPlugin(async () => {
|
|||
|
||||
const route = useRoute()
|
||||
if (route.path.startsWith('/api')) {
|
||||
const result = await $fetch.raw(route.fullPath)
|
||||
const result = (await ($fetch.raw as any)(route.fullPath)) as FetchResponse<unknown>
|
||||
if (result.headers.get('location'))
|
||||
location.href = result.headers.get('location')!
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue