Skip to content

Commit

Permalink
sentry_astro
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Jul 6, 2024
1 parent 0997bf1 commit e1c8ce1
Show file tree
Hide file tree
Showing 7 changed files with 1,324 additions and 15 deletions.
3 changes: 2 additions & 1 deletion services/console/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This this value to test as Bencher Cloud
PUBLIC_IS_BENCHER_CLOUD=true
PUBLIC_GOOGLE_ANALYTICS_ID=G-0000000000
PUBLIC_GOOGLE_ANALYTICS_ID=
PUBLIC_SENTRY_DSN=
1 change: 1 addition & 0 deletions services/console/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PUBLIC_IS_BENCHER_CLOUD=true
PUBLIC_GOOGLE_ANALYTICS_ID=G-9Q5Q2QS45K
PUBLIC_SENTRY_DSN=https://7719705de9925ea3f049382ca4bb8c2c@o4505754877689856.ingest.us.sentry.io/4507554519842816
1 change: 1 addition & 0 deletions services/console/.env.runtime
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BENCHER_API_URL=placeholder
INTERNAL_API_URL=placeholder
GITHUB_CLIENT_ID=placeholder
SENTRY_AUTH_TOKEN=placeholder
9 changes: 9 additions & 0 deletions services/console/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import mdx from "@astrojs/mdx";
import partytown from "@astrojs/partytown";
import sitemap from "@astrojs/sitemap";
import solidJs from "@astrojs/solid-js";
import sentry from "@sentry/astro";
import expressiveCode from "astro-expressive-code";
import { defineConfig } from "astro/config";
import { fromHtmlIsomorphic } from "hast-util-from-html-isomorphic";
Expand Down Expand Up @@ -96,6 +97,14 @@ export default defineConfig({
}),
// https://docs.astro.build/en/guides/integrations-guide/solid-js/
solidJs(),
// https://docs.sentry.io/platforms/javascript/guides/astro/
sentry({
dsn: process.env.PUBLIC_SENTRY_DSN,
sourceMapsUploadOptions: {
project: "bencher-console",
authToken: process.env.SENTRY_AUTH_TOKEN,
},
}),
],
vite: {
assetsInclude: ["**/*.sh", "**/*.ps1"],
Expand Down
Loading

0 comments on commit e1c8ce1

Please sign in to comment.