fix(nuxt): avoid recursive import in nitro renderer (#18948)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
pooya parsa 2023-02-10 17:33:06 +01:00 committed by GitHub
parent cf47f9eb6a
commit 7111b6cf44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,10 @@ import devalue from '@nuxt/devalue'
import destr from 'destr'
import { joinURL } from 'ufo'
import { renderToString as _renderToString } from 'vue/server-renderer'
import { useRuntimeConfig, useNitroApp, defineRenderHandler, getRouteRules } from '#internal/nitro'
import { useRuntimeConfig, defineRenderHandler, getRouteRules } from '#internal/nitro'
import { hash } from 'ohash'
// @ts-ignore
import { useNitroApp } from '#internal/nitro/app'
// eslint-disable-next-line import/no-restricted-paths
import type { NuxtApp, NuxtSSRContext } from '#app/nuxt'
// @ts-ignore