Skip to content

Commit 0bec0bd

Browse files
committed
fix(nuxt): update nitro imports
1 parent 5131ba7 commit 0bec0bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/nuxt/src/core/runtime/nitro/handlers/island.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { useNitroApp } from 'nitro/runtime'
2-
import type { RenderResponse } from 'nitro/types'
1+
import type { RenderResponse } from 'nitropack'
32
import type { Link, SerializableHead } from '@unhead/vue/types'
43
import { destr } from 'destr'
54
import type { H3Event } from 'h3'
@@ -13,6 +12,8 @@ import { getSSRRenderer } from '../utils/renderer/build-files'
1312
import { renderInlineStyles } from '../utils/renderer/inline-styles'
1413
import { type NuxtIslandContext, type NuxtIslandResponse, getClientIslandResponse, getServerComponentHTML, getSlotIslandResponse } from '../utils/renderer/islands'
1514

15+
import { useNitroApp } from '#internal/nitro'
16+
1617
const ISLAND_SUFFIX_RE = /\.json(\?.*)?$/
1718

1819
export default defineEventHandler(async (event) => {

packages/nuxt/src/core/runtime/nitro/utils/renderer/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { H3Event } from 'h3'
2-
import { useRuntimeConfig } from 'nitro/runtime'
32
import { createHead } from '@unhead/vue/server'
43
import { sharedPrerenderCache } from '../cache'
4+
import { useRuntimeConfig } from '#internal/nitro'
55
import type { NuxtSSRContext } from '#app'
66
import type { NuxtPayload } from '#app/nuxt'
77
// @ts-expect-error virtual file

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy