Skip to content

Commit bed0314

Browse files
authored
Merge branch 'main' into move-env-vars
2 parents 053814c + 3a7b0a8 commit bed0314

File tree

7 files changed

+227
-69
lines changed

7 files changed

+227
-69
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
NEXT_PUBLIC_PROVIDER_NAME=acme
55
NEXT_PUBLIC_PROVIDER_ID=572
66
NEXT_PUBLIC_SCIENTIST_API_VERSION=v2
7+
8+
SENTRY_DSN=https://[email protected]/4504805305810944
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ware_refs": []
3+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"ware_refs": [
3+
{
4+
"id": 1234,
5+
"slug": "example-ware",
6+
"name": "Example Ware 1",
7+
"snippet": "This is an example snippet.",
8+
"urls": {
9+
"promo_image": "https://nick-intl.mtvnimages.com/uri/mgid:file:http:shared:media.mtvi.com/MBUS/GeoLocal/GB/mtv/201804/VIAVIMNUKC5966866/toons_spongebob_228_tinyfriends_3123_image_640x360.jpg?quality=1&height=360&width=640&matte=true&crop=false"
10+
}
11+
},
12+
{
13+
"id": 2345,
14+
"slug": "example-ware-2",
15+
"name": "Example Ware 2",
16+
"snippet": "Second Example Ware.",
17+
"urls": {
18+
"promo_image": "https://imgix.ranker.com/user_node_img/50101/1002011886/original/no-one-did-photo-u1?auto=format&q=60&fit=crop&fm=pjpg&dpr=2&w=375"
19+
}
20+
},
21+
{
22+
"id": 3456,
23+
"slug": "test-ware",
24+
"name": "Test Ware",
25+
"snippet": "Here is a test ware snippet.",
26+
"urls": {
27+
"promo_image": "https://y.yarn.co/193fa4ae-a245-4f7a-ac9d-64bbebb18c8d_screenshot.jpg"
28+
}
29+
},
30+
{
31+
"id": 4567,
32+
"slug": "another-test-ware",
33+
"name": "Another Test Ware",
34+
"snippet": "Another test snippet.",
35+
"urls": {
36+
"promo_image": "https://cdn.drawception.com/images/panels/2017/7-2/jtqKRKSpyj-6.png"
37+
}
38+
}
39+
]
40+
}

ops/staging-deploy.tmpl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nextPublicToken: $NEXT_PUBLIC_TOKEN
77
nextAuthSecret: $NEXTAUTH_SECRET
88
clientSecret: $CLIENT_SECRET
99
clientId: $CLIENT_ID
10-
sentryDsn: $SENTRY_DSN
10+
sentryDsn: 'https://[email protected]/4504805305810944'
1111
replicaCount: 1
1212

1313
image:

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"@rjsf/utils": "^5.0.0-beta.17",
2020
"@rjsf/validator-ajv8": "^5.0.1",
2121
"@scientist-softserv/webstore-component-library": "^0.1.15",
22+
"@sentry/react": "^7.42.0",
23+
"@sentry/tracing": "^7.42.0",
2224
"axios": "^1.1.3",
2325
"bootstrap": "^5.2.3",
2426
"next": "12.3.1",

pages/_app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Integrations } from '@sentry/tracing'
2+
import * as Sentry from '@sentry/react'
13
import { Footer, Header } from '@scientist-softserv/webstore-component-library'
24
import { SWRConfig } from 'swr'
35
import {
@@ -17,6 +19,14 @@ import {
1719
} from '../utils'
1820
import '../utils/theme/globals.scss'
1921

22+
Sentry.init({
23+
dsn: process.env.SENTRY_DSN,
24+
integrations: [
25+
new Integrations.BrowserTracing(),
26+
],
27+
tracesSampleRate: 1.0,
28+
})
29+
2030
const WebStore = ({ Component }) => {
2131
const { data: session } = useSession()
2232

0 commit comments

Comments
 (0)