@@ -32,23 +32,30 @@ export default defineConfig({
3232 lastUpdated : true ,
3333 ignoreDeadLinks : true ,
3434 sitemap : {
35- hostname : 'https://coolify.io/docs/'
35+ hostname : env . VITE_SITE_URL ?? 'https://coolify.io/docs/'
36+ } ,
37+
38+ transformHead : ( { pageData } ) => {
39+ const canonicalUrl = `${ env . VITE_SITE_URL ?? 'https://coolify.io/docs' } ${ pageData . relativePath . replace ( / ( ( ^ | \/ ) i n d e x ) ? \. m d $ / , '$2' ) } `
40+ return [
41+ [ 'link' , { rel : 'canonical' , href : canonicalUrl } ]
42+ ]
3643 } ,
3744
3845 head : [
3946 [ 'meta' , { name : 'theme-color' , content : '#000000' } ] ,
4047 [ 'meta' , { property : 'og:type' , content : 'website' } ] ,
4148 [ 'meta' , { property : 'og:title' , content : 'Coolify Docs' } ] ,
42- [ 'meta' , { property : 'og:url' , content : 'https://coolify.io/docs/' } ] ,
49+ [ 'meta' , { property : 'og:url' , content : env . VITE_SITE_URL ?? 'https://coolify.io/docs/' } ] ,
4350 [ 'meta' , { property : 'og:description' , content : 'Self hosting with superpowers: An open-source & self-hostable Heroku / Netlify / Vercel alternative.' } ] ,
4451 [ 'meta' , { property : 'og:image' , content : 'https://coolcdn.b-cdn.net/assets/coolify/og-image-docs.png' } ] ,
4552 [ 'meta' , { property : 'twitter:site' , content : '@coolifyio' } ] ,
4653 [ 'meta' , { property : 'twitter:card' , content : 'summary_large_image' } ] ,
4754 [ 'meta' , { property : 'twitter:title' , content : 'Coolify Docs' } ] ,
4855 [ 'meta' , { property : 'twitter:description' , content : 'Self hosting with superpowers: An open-source & self-hostable Heroku / Netlify / Vercel alternative.' } ] ,
49- [ 'meta' , { property : 'twitter:url' , content : 'https://coolify.io/docs/' } ] ,
56+ [ 'meta' , { property : 'twitter:url' , content : env . VITE_SITE_URL ?? 'https://coolify.io/docs/' } ] ,
5057 [ 'meta' , { property : 'twitter:image' , content : 'https://coolcdn.b-cdn.net/assets/coolify/og-image-docs.png' } ] ,
51- [ 'link' , { rel : 'icon' , href : '/docs/coolify-logo-transparent.png' } ] ,
58+ [ 'link' , { rel : 'icon' , href : '/docs/coolify-logo-transparent.png' , alt : "Coolify's Logo" } ] ,
5259 [ 'link' , { rel : 'icon' , type : 'image/x-icon' , href : '/favicon.ico' } ] ,
5360 [ 'script' , { defer : 'true' , src : 'https://analytics.coollabs.io/js/script.tagged-events.js' , 'data-domain' : env . VITE_ANALYTICS_DOMAIN ?? 'coolify.io/docs' } ] ,
5461 [ 'script' , { async : 'true' , src : '/docs/trieve-user-script.js' } ] ,
@@ -177,7 +184,8 @@ export default defineConfig({
177184 collapsed : true ,
178185 items : [
179186 { text : 'Introduction' , link : '/services/introduction' } ,
180- { text : 'All Services' , link : '/services/overview' }
187+ { text : 'All Services' , link : '/services/overview' } ,
188+ { text : 'Services Directory' , link : '/services/all' }
181189 ]
182190 } ,
183191 {
@@ -402,6 +410,7 @@ export default defineConfig({
402410 } ,
403411 ]
404412 } ,
413+ { text : 'FAQ' , link : '/knowledge-base/faq' } ,
405414 ]
406415 }
407416 ] ,
@@ -439,6 +448,7 @@ export default defineConfig({
439448 collapsed : true ,
440449 items : [
441450 { text : 'Bad Gateway (502)' , link : '/troubleshoot/applications/bad-gateway.md' } ,
451+ { text : 'No Available Server (503)' , link : '/troubleshoot/applications/no-available-server' } ,
442452 { text : 'Gateway Timeout (504)' , link : '/troubleshoot/applications/gateway-timeout' } ,
443453 { text : 'Failed To Get Access Token During Deployment' , link : '/troubleshoot/applications/failed-to-get-token' } ,
444454 ]
0 commit comments