Skip to content

Commit 83a253e

Browse files
authored
ref: Various cleanup (#2355)
- Remove ORG_NAME and PROJECT_NAME as they create confusion - Add ORG_INGEST_DOMAIN - Remove useless config in webpack example
1 parent 73f46a6 commit 83a253e

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

src/components/codeContext.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ type ProjectCodeKeywords = {
77
SECRET_KEY: string;
88
API_URL: string;
99
PROJECT_ID: number;
10-
PROJECT_NAME: string;
1110
PROJECT_SLUG: string;
1211
ORG_ID: number;
13-
ORG_NAME: string;
1412
ORG_SLUG: string;
13+
ORG_INGEST_DOMAIN: string;
1514
MINIDUMP_URL: string;
1615
UNREAL_URL: string;
1716
title: string;
@@ -51,11 +50,10 @@ const DEFAULTS: CodeKeywords = {
5150
SECRET_KEY: "exampleSecretKey",
5251
API_URL: "https://sentry.io/api",
5352
PROJECT_ID: 0,
54-
PROJECT_NAME: "example-project",
5553
PROJECT_SLUG: "example-project",
5654
ORG_ID: 0,
57-
ORG_NAME: "example-org",
5855
ORG_SLUG: "exmaple-org",
56+
ORG_INGEST_DOMAIN: "o0.ingest.sentry.io",
5957
MINIDUMP_URL: "https://examplePublicKey@o0.ingest.sentry.io/0",
6058
UNREAL_URL: "https://examplePublicKey@o0.ingest.sentry.io/0",
6159
title: `example-org / example-project`,
@@ -115,11 +113,10 @@ export function fetchCodeKeywords() {
115113
SECRET_KEY: parsedDsn.secretKey,
116114
API_URL: formatApiUrl(parsedDsn),
117115
PROJECT_ID: project.id,
118-
PROJECT_NAME: project.projectSlug,
119116
PROJECT_SLUG: project.projectSlug,
120117
ORG_ID: project.organizationId,
121-
ORG_NAME: project.organizationSlug,
122118
ORG_SLUG: project.organizationSlug,
119+
ORG_INGEST_DOMAIN: `o${project.organizationId}.ingest.sentry.io`,
123120
MINIDUMP_URL: formatMinidumpURL(parsedDsn),
124121
UNREAL_URL: formatUnrealEngineURL(parsedDsn),
125122
title: `${project.organizationSlug} / ${project.projectSlug}`,

src/docs/product/security-policy-reporting.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ The integration process consists of configuring the appropriate header with your
1818
To configure CSP reports in Sentry, you’ll need to send a header from your server describing your policy, as well specifying the authenticated Sentry endpoint:
1919

2020
```
21-
Content-Security-Policy: ...; report-uri https://o___ORG_ID___.ingest.sentry.io/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___
21+
Content-Security-Policy: ...; report-uri https://___ORG_INGEST_DOMAIN___/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___
2222
```
2323

2424
Alternatively you can setup CSP reports to simply send reports rather than actually enforcing the policy:
2525

2626
```
27-
Content-Security-Policy-Report-Only: ...; report-uri https://o___ORG_ID___.ingest.sentry.io/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___
27+
Content-Security-Policy-Report-Only: ...; report-uri https://___ORG_INGEST_DOMAIN___/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___
2828
```
2929

3030
For more information, see the article on [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy).
@@ -36,7 +36,7 @@ For more information, see the article on [MDN](https://developer.mozilla.org/en-
3636
To configure reports in Sentry, you’ll need to configure the Expect-CT a header from your server:
3737

3838
```
39-
Expect-CT: ..., report-uri="https://o___ORG_ID___.ingest.sentry.io/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___"
39+
Expect-CT: ..., report-uri="https://___ORG_INGEST_DOMAIN___/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___"
4040
```
4141

4242
For more information, see the article on [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT).
@@ -48,7 +48,7 @@ For more information, see the article on [MDN](https://developer.mozilla.org/en-
4848
To configure HPKP reports in Sentry, you’ll need to send a header from your server describing your policy, as well specifying the authenticated Sentry endpoint:
4949

5050
```
51-
Public-Key-Pins: ...; report-uri="https://o___ORG_ID___.ingest.sentry.io/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___"
51+
Public-Key-Pins: ...; report-uri="https://___ORG_INGEST_DOMAIN___/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___"
5252
```
5353

5454
For more information, see the article on [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key_Pinning).

src/platforms/javascript/common/sourcemaps/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ module.exports = {
6363

6464
// webpack specific configuration
6565
include: ".",
66-
ignoreFile: ".sentrycliignore",
6766
ignore: ["node_modules", "webpack.config.js"],
6867
}),
6968
],

src/platforms/javascript/common/sourcemaps/tools/webpack.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module.exports = {
3232

3333
// webpack specific configuration
3434
include: ".",
35-
ignoreFile: ".sentrycliignore",
3635
ignore: ["node_modules", "webpack.config.js"],
3736
}),
3837
],

src/platforms/javascript/common/sourcemaps/troubleshooting_js.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Troubleshooting
33
redirect_from:
4-
- /platforms/javascript/sourcemaps/troubleshooting/
4+
- /platforms/javascript/sourcemaps/troubleshooting/
55
---
66

77
Source maps can sometimes be tricky to get going. If you’re having trouble:
@@ -104,7 +104,7 @@ You can alternately [use our API](/api/releases/post-organization-release-files/
104104

105105
```shell
106106
curl -X POST \
107-
https://sentry.io/api/0/organizations/ORG_NAME/releases/VERSION/files/ \
107+
https://sentry.io/api/0/organizations/ORG_SLUG/releases/VERSION/files/ \
108108
-H 'Authorization: Bearer AUTH_TOKEN' \
109109
-H 'content-type: multipart/form-data' \
110110
-F file=@script.min.js.map \

0 commit comments

Comments
 (0)