mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt): match nitro + nuxt useRuntimeConfig
signatures (#25440)
This commit is contained in:
parent
73421483f6
commit
f40e5dcc8b
@ -6,7 +6,7 @@ import type { HookCallback, Hookable } from 'hookable'
|
||||
import { createHooks } from 'hookable'
|
||||
import { getContext } from 'unctx'
|
||||
import type { SSRContext, createRenderer } from 'vue-bundle-renderer/runtime'
|
||||
import type { H3Event } from 'h3'
|
||||
import type { EventHandlerRequest, H3Event } from 'h3'
|
||||
import type { AppConfig, AppConfigInput, RuntimeConfig } from 'nuxt/schema'
|
||||
import type { RenderResponse } from 'nitropack'
|
||||
import type { MergeHead, VueHeadClient } from '@unhead/vue'
|
||||
@ -473,7 +473,7 @@ export function useNuxtApp (): NuxtApp {
|
||||
}
|
||||
|
||||
/*@__NO_SIDE_EFFECTS__*/
|
||||
export function useRuntimeConfig (): RuntimeConfig {
|
||||
export function useRuntimeConfig (_event?: H3Event<EventHandlerRequest>): RuntimeConfig {
|
||||
return useNuxtApp().$config
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user