Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: sentry (#1493)

* chore: sentry source map

* chore: disable silent in ci env

* fix: filename

authored by

Maximilian Kaske and committed by
GitHub
81943ee0 c24467c5

+21 -15
+1
apps/dashboard/.env.example
··· 37 37 NEXT_PUBLIC_URL= 38 38 39 39 NEXT_PUBLIC_SENTRY_DSN='' 40 + SENTRY_AUTH_TOKEN='' 40 41 41 42 # Unkey 42 43 UNKEY_API_ID=
+6 -5
apps/dashboard/next.config.ts
··· 22 22 // For all available options, see: 23 23 // https://github.com/getsentry/sentry-webpack-plugin#options 24 24 25 - // Suppresses source map uploading logs during build 26 - silent: true, 25 + // Only print logs for uploading source maps in CI 26 + // Set to `true` to suppress logs 27 + silent: !process.env.CI, 27 28 28 29 org: "openstatus", 29 30 project: "openstatus", ··· 32 33 // For all available options, see: 33 34 // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ 34 35 36 + // Pass the auth token 37 + authToken: process.env.SENTRY_AUTH_TOKEN, 38 + 35 39 // Upload a larger set of source maps for prettier stack traces (increases build time) 36 40 widenClientFileUpload: true, 37 41 38 42 // Transpiles SDK to be compatible with IE11 (increases bundle size) 39 43 transpileClientSDK: false, 40 - 41 - // Hides source maps from generated client bundles 42 - hideSourceMaps: true, 43 44 44 45 // Automatically tree-shake Sentry logger statements to reduce bundle size 45 46 disableLogger: true,
+1
apps/status-page/.env.example
··· 10 10 DATABASE_AUTH_TOKEN=any-token 11 11 12 12 NEXT_PUBLIC_SENTRY_DSN='' 13 + SENTRY_AUTH_TOKEN='' 13 14 14 15 # used for contributions to fill the monitor tracker with data 15 16 NOOP_UPTIME="true"
+6 -5
apps/status-page/next.config.ts
··· 57 57 // For all available options, see: 58 58 // https://github.com/getsentry/sentry-webpack-plugin#options 59 59 60 - // Suppresses source map uploading logs during build 61 - silent: true, 60 + // Only print logs for uploading source maps in CI 61 + // Set to `true` to suppress logs 62 + silent: !process.env.CI, 62 63 63 64 org: "openstatus", 64 65 project: "openstatus", ··· 67 68 // For all available options, see: 68 69 // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ 69 70 71 + // Pass the auth token 72 + authToken: process.env.SENTRY_AUTH_TOKEN, 73 + 70 74 // Upload a larger set of source maps for prettier stack traces (increases build time) 71 75 widenClientFileUpload: true, 72 76 73 77 // Transpiles SDK to be compatible with IE11 (increases bundle size) 74 78 transpileClientSDK: false, 75 - 76 - // Hides source maps from generated client bundles 77 - hideSourceMaps: true, 78 79 79 80 // Automatically tree-shake Sentry logger statements to reduce bundle size 80 81 disableLogger: true,
+1
apps/web/.env.example
··· 37 37 NEXT_PUBLIC_URL= 38 38 39 39 NEXT_PUBLIC_SENTRY_DSN='' 40 + SENTRY_AUTH_TOKEN='' 40 41 41 42 # Unkey 42 43 UNKEY_API_ID=
apps/web/instrumentation-client.ts.ts apps/web/instrumentation-client.ts
+6 -5
apps/web/next.config.js
··· 167 167 // For all available options, see: 168 168 // https://github.com/getsentry/sentry-webpack-plugin#options 169 169 170 - // Suppresses source map uploading logs during build 171 - silent: true, 170 + // Only print logs for uploading source maps in CI 171 + // Set to `true` to suppress logs 172 + silent: !process.env.CI, 172 173 173 174 org: "openstatus", 174 175 project: "openstatus", ··· 177 178 // For all available options, see: 178 179 // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ 179 180 181 + // Pass the auth token 182 + authToken: process.env.SENTRY_AUTH_TOKEN, 183 + 180 184 // Upload a larger set of source maps for prettier stack traces (increases build time) 181 185 widenClientFileUpload: true, 182 186 183 187 // Transpiles SDK to be compatible with IE11 (increases bundle size) 184 188 transpileClientSDK: false, 185 - 186 - // Hides source maps from generated client bundles 187 - hideSourceMaps: true, 188 189 189 190 // Automatically tree-shake Sentry logger statements to reduce bundle size 190 191 disableLogger: true,