fix(nuxt): match nitro + nuxt useRuntimeConfig signatures (#25440)

This commit is contained in:
kevin olson 2024-01-29 05:49:29 -06:00 committed by GitHub
parent 73421483f6
commit f40e5dcc8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}