Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup sentry tunnel #190

Merged
merged 7 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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*`,
Expand All @@ -22,6 +31,7 @@ const moduleExports = {

sentry: {
hideSourceMaps: true,
tunnelRoute: "/sentry",
},
};

Expand Down