diff --git a/.astro/settings.json b/.astro/settings.json index d6953d35d..617fbcf26 100644 --- a/.astro/settings.json +++ b/.astro/settings.json @@ -3,6 +3,6 @@ "enabled": false }, "_variables": { - "lastUpdateCheck": 1741697790683 + "lastUpdateCheck": 1742812122664 } } \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index 1993cefe8..a6ac970c5 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -11,12 +11,15 @@ import react from '@astrojs/react'; // https://astro.build/config export default defineConfig({ site: 'https://roadmap.sh/', + redirects: { + '/devops/devops-engineer': { + status: 301, + destination: '/devops', + }, + }, vite: { server: { - allowedHosts: [ - 'roadmap.sh', - 'port3k.kamranahmed.info', - ], + allowedHosts: ['roadmap.sh', 'port3k.kamranahmed.info'], }, }, markdown: { diff --git a/src/components/Analytics/GoogleAd.astro b/src/components/Analytics/GoogleAd.astro index 38c67af92..34efd7927 100644 --- a/src/components/Analytics/GoogleAd.astro +++ b/src/components/Analytics/GoogleAd.astro @@ -1,14 +1,9 @@ ---- -const page = Astro.url; ---- - <script async src='https://securepubads.g.doubleclick.net/tag/js/gpt.js' ></script> <script async> const ignoredPages = [ 'login', 'signup', - 'roadmaps', 'best-practices', 'guides', 'videos', diff --git a/src/pages/devops/devops-engineer.astro b/src/pages/devops/devops-engineer.astro index ca95f2c13..abf33c5a8 100644 --- a/src/pages/devops/devops-engineer.astro +++ b/src/pages/devops/devops-engineer.astro @@ -5,6 +5,8 @@ import { getGuideById } from '../../lib/guide'; import { getOpenGraphImageUrl } from '../../lib/open-graph'; import { replaceVariables } from '../../lib/markdown'; +export const prerender = false; + const guideId = 'devops-engineer'; const guide = await getGuideById(guideId);