Skip to content

Commit 8ccaa17

Browse files
authored
Improve open graph previews (#12127)
* standar size / unique og image * sample AI generated frontmatter descriptions for developer docs/self-hosted * show og images on the home page only * fix linter error
1 parent d833918 commit 8ccaa17

File tree

8 files changed

+11
-2
lines changed

8 files changed

+11
-2
lines changed

app/[[...path]]/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,14 @@ export async function generateMetadata(props: MetadataProps): Promise<Metadata>
200200
: domain;
201201
let title =
202202
'Sentry Docs | Application Performance Monitoring &amp; Error Tracking Software';
203-
let customCanonicalTag;
203+
let customCanonicalTag: string = '';
204204
let description =
205205
'Self-hosted and cloud-based application performance monitoring &amp; error tracking that helps software teams see clearer, solve quicker, &amp; learn continuously.';
206-
const images = [{url: `${previewDomain ?? domain}/meta.jpg`, width: 1200, height: 822}];
206+
// show og image on the home page only
207+
const images =
208+
((await props.params).path ?? []).length === 0
209+
? [{url: `${previewDomain ?? domain}/og.png`, width: 1200, height: 630}]
210+
: [];
207211

208212
const rootNode = await getDocsRootNode();
209213

develop-docs/self-hosted/backup.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Self-Hosted Backup & Restore
33
sidebar_title: Backup & Restore
44
sidebar_order: 20
5+
description: Learn how to backup and restore your self-hosted Sentry data using various methods
56
---
67

78
## Partial JSON backup

develop-docs/self-hosted/custom-ca-roots.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Self-Hosted Custom CA Roots
33
sidebar_title: Custom CA Roots
44
sidebar_order: 30
5+
description: Add custom Certificate Authority (CA) root certificates to your self-hosted Sentry installation
56
---
67

78
Starting with Sentry `21.8.0`, if you need to have Sentry access services which do not have TLS certificates from publicly trusted CA roots, it's now possible to easily add them to the containers. Just add the certificates to the `certificates` folder inside the root of your Sentry install and restart the containers. Your custom CA roots will be used in addition to the publicly trusted CA roots.

develop-docs/self-hosted/email.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Self-Hosted Email
33
sidebar_title: Email
44
sidebar_order: 40
5+
description: Set up and configure email notifications for your self-hosted Sentry instance
56
---
67

78
<Alert title="Note" level="info">

develop-docs/self-hosted/geolocation.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Self-Hosted Geolocation
33
sidebar_title: Geolocation
44
sidebar_order: 50
5+
description: Configure IP geolocation for your self-hosted Sentry installation using MaxMind's GeoLite2 database
56
---
67

78
Sentry can use [MaxMind's free `GeoLite2-City` database](https://dev.maxmind.com/geoip/geoip2/geolite2/) to geolocate IP addresses, providing additional context for error events where the end user's IP address is known and for the session history of users logging into your Sentry installation. We bundle MaxMind's [`geoipupdate`](https://hub.docker.com/r/maxmindinc/geoipupdate) tool for this purpose.

develop-docs/self-hosted/releases.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Self-Hosted Releases & Upgrading
33
sidebar_title: Releases & Upgrading
44
sidebar_order: 1
5+
description: Learn how to upgrade your self-hosted Sentry installation and stay up to date with the latest releases
56
---
67

78
Sentry cuts regular releases for self-hosting to keep it as close to [sentry.io](https://sentry.io) as possible. We decided to follow a monthly release schedule using the [CalVer](https://calver.org/#scheme) versioning scheme, with a primary release on the [15th of each month](https://github.com/getsentry/self-hosted/blob/704e4c3b5b7360080f79bcfbe26583e5a95ae675/.github/workflows/release.yml#L20-L24). We don't patch old versions, but if a bug is bad enough we may cut an out-of-cycle point release, which, like our regular monthly releases, is a snapshot of the latest versions of all of our components. You can find the [latest release](https://github.com/getsentry/self-hosted/releases/latest) over at the [releases section of our self-hosted repository](https://github.com/getsentry/self-hosted/releases/).

public/meta.jpg

-111 KB
Binary file not shown.

public/og.png

-892 KB
Loading

0 commit comments

Comments
 (0)