Add redirect from devops guide

pull/8387/head
Kamran Ahmed 2 months ago
parent d6b0357ee7
commit 18cff6476a
  1. 2
      .astro/settings.json
  2. 11
      astro.config.mjs
  3. 5
      src/components/Analytics/GoogleAd.astro
  4. 2
      src/pages/devops/devops-engineer.astro

@ -3,6 +3,6 @@
"enabled": false
},
"_variables": {
"lastUpdateCheck": 1741697790683
"lastUpdateCheck": 1742812122664
}
}

@ -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: {

@ -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',

@ -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);

Loading…
Cancel
Save