Add disable_seo config to keep preview deployments out of search engines
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -8,6 +8,7 @@ import { log } from "../../../utils/log";
|
||||
import { AppData } from "../../../data/app-data";
|
||||
import _ from "lodash";
|
||||
import grabDirNames from "../../../utils/grab-dir-names";
|
||||
import { NoSEORobotsValue } from "../../../utils/disable-seo";
|
||||
|
||||
const { ROOT_DIR } = grabDirNames();
|
||||
|
||||
@@ -69,7 +70,9 @@ export default async function genWebHTML({
|
||||
|
||||
const dev = isDevelopment();
|
||||
|
||||
const final_meta = _.merge(root_meta, page_meta);
|
||||
const final_meta = global.BUNEXT_CONFIG.disable_seo
|
||||
? { ..._.merge(root_meta, page_meta), robots: NoSEORobotsValue }
|
||||
: _.merge(root_meta, page_meta);
|
||||
|
||||
const public_envs = Object.fromEntries(
|
||||
Object.entries(process.env).filter(([k]) =>
|
||||
|
||||
Reference in New Issue
Block a user