import type { AsyncData } from 'nuxt/app' import { appFetch, refreshTime } from '#imports' export interface SiteConfigDebugData { nitroOrigin: string config: Record stack: Array & { _context?: string, _priority?: number }> runtimeConfig: Record version?: string } export function useSiteConfigData(): AsyncData { return useAsyncData('site-config-debug', async () => { if (!appFetch.value) return null return appFetch.value('/__site-config__/debug.json') }, { watch: [refreshTime] }) }