Skip to content

Commit

Permalink
chore: add dev to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 10, 2023
1 parent 638718d commit 9a92777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/nitro/routes/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ export default defineEventHandler(async (e) => {
const runtimeConfig = useRuntimeConfig()['nuxt-og-image']
const siteConfig = await useSiteConfig(e)

const baseCacheKey = runtimeCacheStorage === 'default' ? `/cache/${module}@${version}` : `/${module}@${version}`
const baseCacheKey = runtimeCacheStorage === 'default' ? `/cache/nuxt-og-image@${runtimeConfig.version}` : `/nuxt-og-image@${runtimeConfig.version}`
const cache = prefixStorage(useStorage(), `${baseCacheKey}/`)
return {
siteConfigUrl: {
value: siteConfig.url,
source: siteConfig._context.url || 'unknown',
},
dev: process.dev,
runtimeConfig,
cachedKeys: await cache.keys(),
}
Expand Down

0 comments on commit 9a92777

Please sign in to comment.