fix: revert upgrade to nuxt v3.2.0 (#1692)

This commit is contained in:
Daniel Roe 2023-02-10 00:32:30 +01:00 committed by GitHub
parent 44c3dd762e
commit 9578ed1e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 421 additions and 530 deletions

View file

@ -1,5 +1,7 @@
import fs from 'unstorage/drivers/fs'
import memory from 'unstorage/drivers/memory'
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types
import _fs from 'unstorage/drivers/fs'
// @ts-expect-error unstorage needs to provide backwards-compatible subpath types
import _memory from 'unstorage/drivers/memory'
import { stringifyQuery } from 'ufo'
@ -17,6 +19,9 @@ import { driver } from '#storage-config'
import type { AppInfo } from '~/types'
import { APP_NAME } from '~/constants'
const fs = _fs as typeof import('unstorage/dist/drivers/fs')['default']
const memory = _memory as typeof import('unstorage/dist/drivers/memory')['default']
const storage = useStorage() as Storage
if (driver === 'fs') {