Skip to content

Commit

Permalink
Ensure the sitemap points to staging as long as the production site d…
Browse files Browse the repository at this point in the history
…oesn't exist.
  • Loading branch information
sydseter committed Feb 4, 2025
1 parent 358a8ac commit 0f4e98d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cornucopia.owasp.org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prebuild": "echo I run before the build script",
"productionbuild": "vite build && node ./script/headers.js && npx svelte-sitemap --out-dir .vercel/output/static --domain https://cornucopia.owasp.org",
"build": "svelte-kit sync && vite build && node ./script/headers.js && npx svelte-sitemap --domain https://cornucopia.owasp.org",
"build-stage": "svelte-kit sync && vite build && node ./script/headers-stage.js && npx svelte-sitemap --domain https://owaspcornucopia.org",
"build-stage": "svelte-kit sync && vite build && node ./script/headers-stage.js && npx svelte-sitemap --domain https://cornucopia.owasp.org",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
Expand Down
2 changes: 1 addition & 1 deletion cornucopia.owasp.org/src/lib/components/footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<span> {new Date().getFullYear()} </span>
<a class="link-with-external-indicator" href="/rss.xml"><img class="rss" height="15px" src="/images/rss.svg" alt="rss" /></a>
<span> | </span>
<a class="link-with-external-indicator" href="https://cornucopia.dotnetlab.eu/sitemap.xml">Sitemap</a>
<a class="link-with-external-indicator" href="https://owaspcornucopia/sitemap.xml">Sitemap</a>
</p>
</footer>

Expand Down

0 comments on commit 0f4e98d

Please sign in to comment.