diff --git a/packages/nuxt/src/app/nuxt.ts b/packages/nuxt/src/app/nuxt.ts index 7301418466..5e1f857900 100644 --- a/packages/nuxt/src/app/nuxt.ts +++ b/packages/nuxt/src/app/nuxt.ts @@ -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): RuntimeConfig { return useNuxtApp().$config }