Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(seo): adding back removed canonical links #186

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading