Skip to content

Commit

Permalink
fix: force trailing slash in url's (#1249)
Browse files Browse the repository at this point in the history
Co-authored-by: Dharamveer singh <[email protected]>
  • Loading branch information
HoomanDgtl and dharamveergit authored Nov 22, 2024
1 parent c6b9640 commit 891688f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig({
}),
],
site: "https://docs.axelar.dev",
trailingSlash: "always",

markdown: {
remarkPlugins: [
remarkDirective,
Expand Down
1 change: 0 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
User-agent: *
Allow: /
Disallow:
Sitemap: https://docs.axelar.dev/sitemap-0.xml
24 changes: 12 additions & 12 deletions src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
<!doctype html>
<html lang="en">
<head>
<script
type="text/partytown"
src="https://www.googletagmanager.com/gtag/js?id=G-81ZT0BK1ZB"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-81ZT0BK1ZB");
</script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down Expand Up @@ -95,6 +83,18 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/satellite-min.css"
/>
<script
type="text/partytown"
src="https://www.googletagmanager.com/gtag/js?id=G-81ZT0BK1ZB"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-81ZT0BK1ZB");
</script>
<script src="/src/scripts/index.ts"></script>
<script is:inline>
const root = document.documentElement;
Expand Down
3 changes: 1 addition & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"framework": null,
"trailingSlash": true,
"redirects": [
{
"source": "/dev/amplifier/chain-integration/relay-messages/",
Expand Down Expand Up @@ -550,4 +549,4 @@
"permanent": true
}
]
}
}

0 comments on commit 891688f

Please sign in to comment.