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 552673c commit b43e307
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/runtime/nitro/composables/getPathRobotConfig.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { H3Event } from 'h3'
import { getSiteRobotConfig, useNitroApp, useRuntimeConfig } from '#imports'
import { useNitroApp, useRuntimeConfig } from '#imports'
import { getRequestHeader } from 'h3'
import { withoutTrailingSlash } from 'ufo'
import { matchPathToRule, normaliseRobotsRouteRule } from '../../util'
import { createNitroRouteRuleMatcher } from '../kit'
import { getSiteRobotConfig } from './getSiteRobotConfig'

export function getPathRobotConfig(e: H3Event, options?: { userAgent?: string, skipSiteIndexable?: boolean, path?: string }): { rule: string, indexable: boolean, debug?: { source: string, line: string } } {
// has already been resolved
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/nitro/composables/getSiteRobotConfig.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { H3Event } from 'h3'
import type { ParsedRobotsTxt } from '../../types'
import { getSiteIndexable, useRuntimeConfig, useSiteConfig } from '#imports'
import { useRuntimeConfig } from '#imports'
import { getSiteIndexable } from '#site-config/nitro/composables/getSiteIndexable'
import { useSiteConfig } from '#site-config/nitro/composables/useSiteConfig'
import { getQuery } from 'h3'

export function getSiteRobotConfig(e: H3Event): { indexable: boolean, hints: string[] } {
Expand Down

0 comments on commit b43e307

Please sign in to comment.