diff --git a/CHANGELOG.md b/CHANGELOG.md index def074a4c..d7e867128 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -116,6 +116,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Improvements +- [#190](https://github.com/alleslabs/celatone-frontend/pull/190) Setup sentry tunnel in next config - [#179](https://github.com/alleslabs/celatone-frontend/pull/179) Add loading state to My code, Recent Codes, Contract details, Code details, All public projects, Public project, Saved Contract, Instantiated my be - [#182](https://github.com/alleslabs/celatone-frontend/pull/182) Disable mainnet store code and show alert, refactor select chain hook and alert variants - [#180](https://github.com/alleslabs/celatone-frontend/pull/180) Add helper text to editable cell, Change trash button to bookmark button diff --git a/next.config.js b/next.config.js index d46042b7e..0088713a0 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,10 @@ const { withSentryConfig } = require("@sentry/nextjs"); /** @type {import('next').NextConfig} */ +const SENTRY_DSN = + process.env.NEXT_PUBLIC_SENTRY_DSN ?? + "https://examplePublicKey@o0.ingest.sentry.io/0"; + const nextConfig = { swcMinify: true, reactStrictMode: true, @@ -9,6 +13,11 @@ const nextConfig = { }, async rewrites() { return [ + { + source: "/sentry/:path*", + // https://abcdefghijklmnopqrstquwxyzabcdef@o123456.ingest.sentry.io/1234567 + destination: `https://${SENTRY_DSN.split("@")[1].split("/")[0]}/:path*`, + }, { source: "/amplitude/:path*", destination: `https://api2.amplitude.com/2/httpapi/:path*`, @@ -22,6 +31,7 @@ const moduleExports = { sentry: { hideSourceMaps: true, + tunnelRoute: "/sentry", }, };