Skip to content

Commit

Permalink
chore: missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 7, 2023
1 parent 9ef3db9 commit 60960b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/routes/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { resolveAsyncSitemapData } from '../sitemap/entries'
import type { ModuleRuntimeConfig } from '../types'
import { createSitePathResolver, useRuntimeConfig } from '#imports'
import pages from '#nuxt-simple-sitemap/pages.mjs'
import { getRouteRulesForPath } from '#internal/nitro/route-rules'

export default defineEventHandler(async (e) => {
const { moduleConfig, buildTimeMeta } = useRuntimeConfig()['nuxt-simple-sitemap'] as any as ModuleRuntimeConfig
Expand All @@ -15,6 +16,7 @@ export default defineEventHandler(async (e) => {
data: (await resolveAsyncSitemapData({
moduleConfig,
buildTimeMeta,
getRouteRulesForPath,
nitroUrlResolver: createSitePathResolver(e, { canonical: false, absolute: true, withBase: true }),
canonicalUrlResolver: createSitePathResolver(e, { canonical: !process.dev, absolute: true, withBase: true }),
relativeBaseUrlResolver: createSitePathResolver(e, { absolute: false, withBase: true }),
Expand Down

0 comments on commit 60960b9

Please sign in to comment.