From 0ae9b1efbc562c45860ac77f1d8f9d31534e869e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 14:29:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20secure=20hardcoded=20IndexNow=20?= =?UTF-8?q?key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove hardcoded IndexNow API key from `astro.config.mjs` and use `process.env.INDEXNOW_KEY` instead. Conditionally apply the plugin to ensure builds succeed when the key is not present. Co-authored-by: lsb11 <269203137+lsb11@users.noreply.github.com> --- astro.config.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index f1805f6..325b177 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -247,8 +247,6 @@ export default defineConfig({ }, }), mdx(), - indexnow({ - key: 'b953b757ff91da6971c05ff7f7e39668', - }), + ...(process.env.INDEXNOW_KEY ? [indexnow({ key: process.env.INDEXNOW_KEY })] : []), ], });