Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 3, 2024
1 parent b43e307 commit c102eef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/runtime/nitro/server/__robots__/debug.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { getSiteRobotConfig, useRuntimeConfig, useSiteConfig } from '#imports'
import { useRuntimeConfig, useSiteConfig } from '#imports'
import { defineEventHandler, getQuery } from 'h3'
import { getSiteRobotConfig } from '../../composables/getSiteRobotConfig'

export default defineEventHandler(async (e) => {
const runtimeConfig = useRuntimeConfig(e)['nuxt-robots']
const { indexable, hints } = await getSiteRobotConfig(e)
const { indexable, hints } = getSiteRobotConfig(e)
const siteConfig = useSiteConfig(e)
const robotsTxt = await e.$fetch('/robots.txt', {
query: getQuery(e),
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/nitro/server/robots-txt.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { HookRobotsConfigContext, HookRobotsTxtContext } from '../../types'
import { getSiteRobotConfig, useNitroApp, useRuntimeConfig, withSiteUrl } from '#imports'
import { useNitroApp, useRuntimeConfig, withSiteUrl } from '#imports'
import { defineEventHandler, setHeader } from 'h3'
import { asArray, generateRobotsTxt } from '../../util'
import { getSiteRobotConfig } from '../composables/getSiteRobotConfig'
import { resolveRobotsTxtContext } from '../util'

export default defineEventHandler(async (e) => {
Expand Down

0 comments on commit c102eef

Please sign in to comment.