Compare commits
2 Commits
e5f0bd0595
...
314ade1457
Author | SHA1 | Date | |
---|---|---|---|
314ade1457 | |||
01cc5d8c48 |
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
@ -15,6 +15,9 @@ ENV NODE_ENV production
|
|||||||
ARG GIT_REV
|
ARG GIT_REV
|
||||||
ENV GIT_REV=${GIT_REV}
|
ENV GIT_REV=${GIT_REV}
|
||||||
|
|
||||||
|
ARG SENTRY_AUTH_TOKEN
|
||||||
|
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
|
||||||
|
|
||||||
# Copy the depends
|
# Copy the depends
|
||||||
COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
||||||
COPY --from=depends /app/node_modules ./node_modules
|
COPY --from=depends /app/node_modules ./node_modules
|
||||||
|
@ -41,24 +41,42 @@ const withBundleAnalyzer = nextBundleAnalyzer({
|
|||||||
enabled: process.env.ANALYZE === "true",
|
enabled: process.env.ANALYZE === "true",
|
||||||
});
|
});
|
||||||
|
|
||||||
export default withBundleAnalyzer(
|
export default withSentryConfig(withBundleAnalyzer(nextConfig), {
|
||||||
withSentryConfig(nextConfig, {
|
// For all available options, see:
|
||||||
org: "scoresaber-reloaded",
|
// https://github.com/getsentry/sentry-webpack-plugin#options
|
||||||
project: "frontend",
|
|
||||||
sentryUrl: "https://glitchtip.fascinated.cc/",
|
org: "fascinatedcc",
|
||||||
silent: !process.env.CI,
|
project: "scoresaber-reloaded",
|
||||||
reactComponentAnnotation: {
|
|
||||||
enabled: true,
|
// Only print logs for uploading source maps in CI
|
||||||
},
|
silent: !process.env.CI,
|
||||||
tunnelRoute: "/monitoring",
|
|
||||||
hideSourceMaps: true,
|
// For all available options, see:
|
||||||
disableLogger: true,
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
||||||
sourcemaps: {
|
|
||||||
disable: true,
|
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
||||||
},
|
widenClientFileUpload: true,
|
||||||
release: {
|
|
||||||
create: false,
|
// Automatically annotate React components to show their full name in breadcrumbs and session replay
|
||||||
finalize: false,
|
reactComponentAnnotation: {
|
||||||
},
|
enabled: true,
|
||||||
})
|
},
|
||||||
);
|
|
||||||
|
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
|
||||||
|
// This can increase your server load as well as your hosting bill.
|
||||||
|
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
|
||||||
|
// side errors will fail.
|
||||||
|
tunnelRoute: "/monitoring",
|
||||||
|
|
||||||
|
// Hides source maps from generated client bundles
|
||||||
|
hideSourceMaps: true,
|
||||||
|
|
||||||
|
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
||||||
|
disableLogger: true,
|
||||||
|
|
||||||
|
// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
|
||||||
|
// See the following for more information:
|
||||||
|
// https://docs.sentry.io/product/crons/
|
||||||
|
// https://vercel.com/docs/cron-jobs
|
||||||
|
automaticVercelMonitors: true,
|
||||||
|
});
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"@radix-ui/react-slot": "^1.1.0",
|
"@radix-ui/react-slot": "^1.1.0",
|
||||||
"@radix-ui/react-toast": "^1.2.1",
|
"@radix-ui/react-toast": "^1.2.1",
|
||||||
"@radix-ui/react-tooltip": "^1.1.2",
|
"@radix-ui/react-tooltip": "^1.1.2",
|
||||||
"@sentry/nextjs": "8.35.0",
|
"@sentry/nextjs": "8",
|
||||||
"@ssr/common": "workspace:*",
|
"@ssr/common": "workspace:*",
|
||||||
"@tanstack/react-query": "^5.55.4",
|
"@tanstack/react-query": "^5.55.4",
|
||||||
"@uidotdev/usehooks": "^2.4.1",
|
"@uidotdev/usehooks": "^2.4.1",
|
||||||
|
@ -5,8 +5,24 @@
|
|||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13",
|
dsn: "https://2b0d6c2e72099dee7db2ce9c030651bd@o4508202509205504.ingest.de.sentry.io/4508202511302736",
|
||||||
tracesSampleRate: 0.1,
|
|
||||||
|
// Add optional integrations for additional features
|
||||||
|
integrations: [
|
||||||
|
Sentry.replayIntegration(),
|
||||||
|
],
|
||||||
|
|
||||||
|
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
||||||
|
tracesSampleRate: 1,
|
||||||
|
|
||||||
|
// Define how likely Replay events are sampled.
|
||||||
|
// This sets the sample rate to be 10%. You may want this to be 100% while
|
||||||
|
// in development and sample at a lower rate in production
|
||||||
|
replaysSessionSampleRate: 0.1,
|
||||||
|
|
||||||
|
// Define how likely Replay events are sampled when an error occurs.
|
||||||
|
replaysOnErrorSampleRate: 1.0,
|
||||||
|
|
||||||
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
debug: false,
|
debug: false,
|
||||||
enabled: process.env.NODE_ENV === "production",
|
|
||||||
});
|
});
|
||||||
|
@ -6,8 +6,11 @@
|
|||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13",
|
dsn: "https://2b0d6c2e72099dee7db2ce9c030651bd@o4508202509205504.ingest.de.sentry.io/4508202511302736",
|
||||||
tracesSampleRate: 0.1,
|
|
||||||
|
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
||||||
|
tracesSampleRate: 1,
|
||||||
|
|
||||||
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
debug: false,
|
debug: false,
|
||||||
enabled: process.env.NODE_ENV === "production",
|
|
||||||
});
|
});
|
||||||
|
@ -5,8 +5,11 @@
|
|||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://69aed8b4a32e45db8fcb1b4285b4370f@glitchtip.fascinated.cc/13",
|
dsn: "https://2b0d6c2e72099dee7db2ce9c030651bd@o4508202509205504.ingest.de.sentry.io/4508202511302736",
|
||||||
tracesSampleRate: 0.1,
|
|
||||||
|
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
||||||
|
tracesSampleRate: 1,
|
||||||
|
|
||||||
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
debug: false,
|
debug: false,
|
||||||
enabled: process.env.NODE_ENV === "production",
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user