Skip to content

Commit

Permalink
fix(seo): adding back removed canonical links
Browse files Browse the repository at this point in the history
  • Loading branch information
technikhil314 committed Oct 6, 2024
1 parent af2e7e7 commit 4c91e4d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin'
const BASE_URL = 'https://diffviewer.vercel.app'
const DESCRIPTION =
'A privacy first diff viewer that is secure, easy, simple and for any text type'
const domainAliases = [
'https://diffchecker.vercel.app/',
'https://textdiff.vercel.app/',
'https://differencer.vercel.app/',
'https://diffie.vercel.app/',
'https://differencefinder.vercel.app/',
]
const canonicalLinks = domainAliases.map((x) => ({ rel: 'canonical', href: x }))
export default {
ssr: false,
head: {
Expand All @@ -17,7 +25,10 @@ export default {
meta: [
{ charset: 'utf-8' },
{ name: 'color-scheme', content: 'dark light' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'viewport',
content: 'width=750px; initial-scale=1',
},
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'theme-color', content: '#2563EB' },
{ name: 'og:url', property: 'og:url', content: `${BASE_URL}` },
Expand Down Expand Up @@ -227,6 +238,7 @@ export default {
sizes: '180x180',
href: '/light-apple-touch-icon-180x180.png',
},
...canonicalLinks,
],
},

Expand Down

0 comments on commit 4c91e4d

Please sign in to comment.