From 17e12a6bd200a2aec362b6c872e76a81b08b14c3 Mon Sep 17 00:00:00 2001 From: Leon Talbert Date: Thu, 5 Sep 2024 21:09:49 +0800 Subject: [PATCH] Use specific sitemap graph key --- .github/workflows/pages-deployment.yaml | 2 ++ scripts/generate-site-map.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages-deployment.yaml b/.github/workflows/pages-deployment.yaml index 91ab55e9b..b96c3d2e4 100644 --- a/.github/workflows/pages-deployment.yaml +++ b/.github/workflows/pages-deployment.yaml @@ -66,6 +66,8 @@ jobs: run: | mkdir -p ./out/sitemaps pnpm generate:sitemaps + env: + SITEMAP_GRAPH_KEY: ${{ secrets.SITEMAP_GRAPH_KEY }} - name: Publish uses: cloudflare/pages-action@v1 diff --git a/scripts/generate-site-map.mjs b/scripts/generate-site-map.mjs index 8f8a551a0..7352ec0bc 100644 --- a/scripts/generate-site-map.mjs +++ b/scripts/generate-site-map.mjs @@ -13,7 +13,7 @@ import { import { normalise } from '@ensdomains/ensjs/utils' -const ENS_SUBGRAPH_API_KEY = 'fb9b07f6c149fbdbe946149837a1d673' +const ENS_SUBGRAPH_API_KEY = process.env.SITEMAP_GRAPH_KEY const baseURL = 'https://app.ens.domains' const graphAPI = `https://gateway-arbitrum.network.thegraph.com/api/${ENS_SUBGRAPH_API_KEY}/subgraphs/id/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH`