Skip to content

Commit b831422

Browse files
authored
Merge pull request #378 from coollabsio/next
SEO happy
2 parents b7c4b1d + ef467bf commit b831422

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+79
-73
lines changed

docs/.vitepress/config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export default defineConfig({
3535
hostname: env.VITE_SITE_URL ?? 'https://coolify.io/docs/'
3636
},
3737

38+
transformHead: ({ pageData }) => {
39+
const canonicalUrl = `${env.VITE_SITE_URL ?? 'https://coolify.io/docs'}${pageData.relativePath.replace(/((^|\/)index)?\.md$/, '$2')}`
40+
return [
41+
['link', { rel: 'canonical', href: canonicalUrl }]
42+
]
43+
},
44+
3845
head: [
3946
['meta', { name: 'theme-color', content: '#000000' }],
4047
['meta', { property: 'og:type', content: 'website' }],

docs/api-reference/api/index.md

Lines changed: 1 addition & 0 deletions

docs/api-reference/api/operations/[operation].md

Lines changed: 1 addition & 0 deletions

docs/api-reference/authorization.md

Lines changed: 1 addition & 1 deletion

docs/applications/django.md

Lines changed: 1 addition & 0 deletions

docs/applications/index.md

Lines changed: 1 addition & 0 deletions

docs/applications/jekyll.md

Lines changed: 1 addition & 0 deletions

docs/applications/laravel.md

Lines changed: 1 addition & 0 deletions

docs/applications/nextjs.md

Lines changed: 1 addition & 0 deletions

docs/applications/nuxt.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)