Skip to content

Commit

Permalink
Merge pull request #128 from nikolalsvk/add-error-tracking
Browse files Browse the repository at this point in the history
Add Sentry error tracking
  • Loading branch information
nikolalsvk authored Jan 16, 2024
2 parents b50a697 + 7e12975 commit e321c69
Show file tree
Hide file tree
Showing 4 changed files with 384 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})

module.exports = {
siteMetadata: {
title: `Pragmatic Pineapple 🍍`,
Expand All @@ -14,6 +18,12 @@ module.exports = {
},
plugins: [
"gatsby-plugin-postcss",
{
resolve: "@sentry/gatsby",
options: {
dsn: process.env.SENTRY_DSN,
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
Expand Down
Loading

0 comments on commit e321c69

Please sign in to comment.