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)
// trueWas this page helpful?
Related
Was this page helpful?