diff --git a/packages/app-explorer/.env.example b/packages/app-explorer/.env.example index b7d137e2..98d29051 100644 --- a/packages/app-explorer/.env.example +++ b/packages/app-explorer/.env.example @@ -9,6 +9,9 @@ NEXT_PUBLIC_IS_PUBLIC_PREVIEW=true NEXT_PUBLIC_WALLET_INSTALL=https://chrome.google.com/webstore/detail/fuel-wallet/dldjpboieedgcmpkchcjcbijingjcgok NEXT_PUBLIC_WALLET_INSTALL_NEXT=https://next-wallet.fuel.network/docs/install/#install-from-source-code +# SEO +SEO_DISABLED=true + # Explorer API URL FUEL_EXPLORER_API= FUEL_EXPLORER_API_KEY= diff --git a/packages/app-explorer/next.config.mjs b/packages/app-explorer/next.config.mjs index 1d0d3f77..21937fd6 100644 --- a/packages/app-explorer/next.config.mjs +++ b/packages/app-explorer/next.config.mjs @@ -18,6 +18,22 @@ const config = { eslint: { ignoreDuringBuilds: true, }, + async headers() { + const headers = []; + if (process.env.SEO_DISABLED === 'true') { + headers.push({ + headers: [ + { + key: 'X-Robots-Tag', + value: 'noindex', + }, + ], + source: '/:path*', + }); + } + + return headers; + }, redirects: async () => { return [ {