-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into kw/add-react-featur…
…es-to-rn
- Loading branch information
Showing
424 changed files
with
4,799 additions
and
2,597 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "data-schemas"] | ||
path = data-schemas | ||
url = https://github.com/getsentry/sentry-data-schemas.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
import type {MetadataRoute} from 'next'; | ||
|
||
import {getDocsFrontMatter} from 'sentry-docs/mdx'; | ||
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs'; | ||
import {getDevDocsFrontMatter, getDocsFrontMatter} from 'sentry-docs/mdx'; | ||
|
||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> { | ||
if (isDeveloperDocs) { | ||
const docs = getDevDocsFrontMatter(); | ||
const baseUrl = 'https://develop.sentry.dev'; | ||
return docsToSitemap(docs, baseUrl); | ||
} | ||
const docs = await getDocsFrontMatter(); | ||
const baseUrl = 'https://docs.sentry.io'; | ||
return docsToSitemap(docs, baseUrl); | ||
} | ||
|
||
const sitemapEntries = docs.map(doc => { | ||
let slug = doc.slug; | ||
if (!slug.endsWith('/')) { | ||
slug += '/'; | ||
function docsToSitemap(docs: {slug: string}[], baseUrl: string): MetadataRoute.Sitemap { | ||
const paths = docs.map(({slug}) => slug); | ||
const appendSlash = (path: string) => { | ||
if (path === '' || path.endsWith('/')) { | ||
return path; | ||
} | ||
return {url: `https://docs.sentry.io/${slug}`}; | ||
}); | ||
sitemapEntries.unshift({ | ||
url: 'https://docs.sentry.io/', | ||
}); | ||
return sitemapEntries; | ||
return path + '/'; | ||
}; | ||
const toFullUrl = (path: string) => `${appendSlash(baseUrl)}${appendSlash(path)}`; | ||
const toSitemapEntry = (path: string) => ({url: toFullUrl(path)}); | ||
return ['', ...paths].map(toSitemapEntry); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"headers": [ | ||
{ | ||
"source": "/(.*)", | ||
"headers": [ | ||
{ | ||
"key": "X-Content-Type-Options", | ||
"value": "nosniff" | ||
}, | ||
{ | ||
"key": "X-Frame-Options", | ||
"value": "sameorigin" | ||
}, | ||
{ | ||
"key": "X-XSS-Protection", | ||
"value": "1; mode=block" | ||
}, | ||
{ | ||
"key": "Content-Security-Policy", | ||
"value": "upgrade-insecure-requests; default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.sentry-cdn.com www.googletagmanager.com plausible.io vercel.live; connect-src 'self' *.sentry.io sentry.io *.algolia.net *.algolianet.com *.algolia.io plausible.io reload.getsentry.net storage.googleapis.com; img-src * 'self' data: www.google.com www.googletagmanager.com; style-src 'self' 'unsafe-inline'; font-src 'self' fonts.gstatic.com; frame-src demo.arcade.software player.vimeo.com; worker-src blob:; report-uri https://o1.ingest.sentry.io/api/1267915/security/?sentry_key=ad63ba38287245f2803dc220be959636; report-to csp" | ||
}, | ||
{ | ||
"key": "NEL", | ||
"value": "{\"report_to\":\"nel\",\"max_age\":3600,\"success_fraction\":0.0,\"failure_fraction\":1.0}" | ||
}, | ||
{ | ||
"key": "Report-To", | ||
"value": "{\"group\":\"nel\",\"max_age\":3600,\"endpoints\":[{\"url\":\"https://o1.ingest.sentry.io/api/1267915/nel/?sentry_key=ad63ba38287245f2803dc220be959636\"}]},{\"group\":\"csp\",\"max_age\":3600,\"endpoints\":[{\"url\":\"https://o1.ingest.sentry.io/api/1267915/security/?sentry_key=ad63ba38287245f2803dc220be959636\"}]}" | ||
} | ||
] | ||
} | ||
], | ||
"trailingSlash": true | ||
} |
Submodule data-schemas
added at
8c1345
4 changes: 3 additions & 1 deletion
4
develop-docs/ab-testing/index.mdx → ...lop-docs/application/ab-testing/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# A/B Tests with Amplitude | ||
--- | ||
title: A/B Tests with Amplitude | ||
--- | ||
|
||
## Why AB testing? | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
develop-docs/api/basics.mdx → develop-docs/application/api/basics.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
develop-docs/api/checklist.mdx → develop-docs/application/api/checklist.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: "Public API Checklist" | ||
title: Public API Checklist | ||
sidebar_order: 5 | ||
--- | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
develop-docs/api/concepts.mdx → develop-docs/application/api/concepts.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.