From d0452d8741796856acc5c8e30ff9c67839342b2f Mon Sep 17 00:00:00 2001 From: Mark Meyer Date: Thu, 5 Oct 2023 09:08:57 -0800 Subject: [PATCH 1/2] This sets the astro site config (used primarily for the xml sitemap) to the prod domain --- astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index f06c4ae0..c08029c5 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,7 +8,7 @@ import sitemapFilter from "./src/config/sitemapFilter"; // https://astro.build/config export default defineConfig({ - site: 'https://demo.smartpay.gsa.gov/', + site: 'https://smartpay.gsa.gov/', base: process.env.BASEURL, integrations: [mdx(), sitemap({ filter: sitemapFilter })], outDir: '_site', From e53271ee7ed9ddd1d4e1129ea8d73dd64d5ea273 Mon Sep 17 00:00:00 2001 From: Mark Meyer Date: Thu, 5 Oct 2023 09:13:15 -0800 Subject: [PATCH 2/2] change robots.txt and npm script to prod domain --- package.json | 4 ++-- public/robots.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2eb537b4..60e940d8 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "federalist": "astro build", "serve": "npm run build && npm run preview -- --port 8080", "pa11y-ci": "npm run pa11y-ci:desktop && npm run pa11y-ci:mobile", - "pa11y-ci:desktop": "pa11y-ci --config ./.pa11yci-desktop --sitemap http://localhost:8080/sitemap-0.xml --sitemap-find \"^https://demo.smartpay.gsa.gov/\" --sitemap-replace \"http://localhost:8080/\"", - "pa11y-ci:mobile": "pa11y-ci --config ./.pa11yci-mobile --sitemap http://localhost:8080/sitemap-0.xml --sitemap-find \"^https://demo.smartpay.gsa.gov/\" --sitemap-replace \"http://localhost:8080/\"", + "pa11y-ci:desktop": "pa11y-ci --config ./.pa11yci-desktop --sitemap http://localhost:8080/sitemap-0.xml --sitemap-find \"^https://smartpay.gsa.gov/\" --sitemap-replace \"http://localhost:8080/\"", + "pa11y-ci:mobile": "pa11y-ci --config ./.pa11yci-mobile --sitemap http://localhost:8080/sitemap-0.xml --sitemap-find \"^https://smartpay.gsa.gov/\" --sitemap-replace \"http://localhost:8080/\"", "pa11y-ci:gh": "npx start-server-and-test serve http://localhost:8080 pa11y-ci", "links:internal": "npx start-server-and-test serve http://localhost:8080 'blc -e -r http://localhost:8080'", "links:external": "npx start-server-and-test serve http://localhost:8080 'blc -i -r http://localhost:8080'", diff --git a/public/robots.txt b/public/robots.txt index f94a8dfa..15bedf6f 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://demo.smartpay.gsa.gov/sitemap-index.xml \ No newline at end of file +Sitemap: https://smartpay.gsa.gov/sitemap-index.xml \ No newline at end of file