Skip to content

Commit 5535761

Browse files
authored
Merge pull request #22 from hackclub/staging
Some sentry fixes and added countdown
2 parents 6559df2 + c995d75 commit 5535761

File tree

13 files changed

+160
-113
lines changed

13 files changed

+160
-113
lines changed

.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# POSTGRES_USER=postgres
44
# POSTGRES_PASSWORD=password
55
# DATABASE_URL=postgresql://postgres:password@db:5432/postgres
6-
# SENTRY_AUTH_TOKEN=
76
# PUBLIC_ENV=production # or staging
87

98
PUBLIC_ENV=dev
@@ -24,4 +23,6 @@ SUPER_ADMIN_SLACK_ID=changeme
2423

2524
IDV_DOMAIN=account.hackclub.com
2625
IDV_CLIENT_ID=changeme
27-
IDV_CLIENT_SECRET=changeme
26+
IDV_CLIENT_SECRET=changeme
27+
28+
SENTRY_AUTH_TOKEN=changeme

package-lock.json

Lines changed: 61 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@aws-sdk/client-s3": "^3.940.0",
5151
"@lucide/svelte": "^0.547.0",
5252
"@prgm/sveltekit-progress-bar": "^3.0.2",
53-
"@sentry/sveltekit": "^10.27.0",
53+
"@sentry/sveltekit": "^10.29.0",
5454
"cron": "^4.3.4",
5555
"drizzle-kit": "^0.31.7",
5656
"drizzle-orm": "^0.44.7",

src/hooks.client.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit';
22
import * as Sentry from '@sentry/sveltekit';
3-
import { PUBLIC_ENV } from '$env/static/public';
3+
import { env } from '$env/dynamic/public';
44

55
Sentry.init({
6-
dsn:
7-
PUBLIC_ENV == 'staging' || PUBLIC_ENV == 'production'
8-
? 'https://[email protected]/4510461147742208'
9-
: undefined,
6+
dsn: 'https://[email protected]/4510461147742208',
107

118
tracesSampleRate: 1.0,
129

1310
// Enable logs to be sent to Sentry
1411
enableLogs: true,
1512

1613
// Environment
17-
environment: PUBLIC_ENV,
14+
environment: env.PUBLIC_ENV ?? 'dev',
1815

1916
// This sets the sample rate to be 10%. You may want this to be 100% while
2017
// in development and sample at a lower rate in production

src/instrumentation.server.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
import { PUBLIC_ENV } from '$env/static/public';
1+
import { env } from '$env/dynamic/private';
22
import * as Sentry from '@sentry/sveltekit';
33

44
Sentry.init({
5-
dsn:
6-
PUBLIC_ENV == 'staging' || PUBLIC_ENV == 'production'
7-
? 'https://[email protected]/4510461147742208'
8-
: undefined,
5+
dsn: 'https://[email protected]/4510461147742208',
96

107
integrations: [Sentry.consoleLoggingIntegration({ levels: ['log', 'warn', 'error'] })],
118

129
tracesSampleRate: 1.0,
1310

14-
environment: PUBLIC_ENV,
11+
environment: env.PUBLIC_ENV ?? 'dev',
1512

1613
// Enable logs to be sent to Sentry
1714
enableLogs: true
@@ -20,4 +17,4 @@ Sentry.init({
2017
// spotlight: import.meta.env.DEV,
2118
});
2219

23-
export const handleError = Sentry.handleErrorWithSentry();
20+
// export const handleError = Sentry.handleErrorWithSentry();

src/routes/approved-editors/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
!!
3939
</span>
4040
</li>
41+
<li>Rhino</li>
4142
<li>Blender</li>
4243
</ul>
4344
<p class="mt-2">No TinkerCAD please.</p>

0 commit comments

Comments
 (0)