8 lines
241 B
JavaScript
8 lines
241 B
JavaScript
import { useSiteConfig } from "#imports";
|
|
export function getSiteIndexable(e) {
|
|
const { env, indexable } = useSiteConfig(e);
|
|
if (typeof indexable !== "undefined")
|
|
return String(indexable) === "true";
|
|
return env === "production";
|
|
}
|