Index of every page on this site: llms.txt

getSiteIndexable()

Determine if the site is indexable by search engines.

If the indexable property is explicitly set in site config, that value is returned directly. Otherwise, it falls back to checking whether env === 'production', returning true for production and false otherwise.

Usage

import { getSiteIndexable } from '#site-config/server'

const indexable = getSiteIndexable(e)
// true
Was this page helpful?