Skip to content

Commit

Permalink
feat: add sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Jan 8, 2024
1 parent 968fed4 commit 4e76000
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v1
env: # Or as an environment variable
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
Expand Down
26 changes: 18 additions & 8 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ import sentry from "@sentry/astro";

// https://astro.build/config
export default defineConfig({
integrations: [sentry()],
site: "https://3636.live",
vite: {
plugins: [VitePWA({
manifest
})]
}
});
integrations: [
sentry({
dsn: "https://[email protected]/4506118179586048",
sourceMapsUploadOptions: {
project: "3636-live",
authToken: process.env.SENTRY_AUTH_TOKEN,
},
}),
],
site: "https://3636.live",
vite: {
plugins: [
VitePWA({
manifest,
}),
],
},
});

0 comments on commit 4e76000

Please sign in to comment.