Compare commits

...

11 Commits

Author SHA1 Message Date
pablodanswer
e3fd13d518 attempt fix 2025-01-20 15:46:01 -08:00
pablodanswer
d1ef3b33b8 update config 2025-01-20 14:44:27 -08:00
pablodanswer
b6cbe68ab7 k 2025-01-20 13:50:23 -08:00
pablodanswer
f5f6e71c41 node options 2025-01-20 13:45:50 -08:00
pablodanswer
8e6bf60e46 update web push 2025-01-20 13:36:39 -08:00
pablodanswer
438a5f3844 update 2025-01-20 13:23:21 -08:00
pablodanswer
c0b8098c22 k 2025-01-20 13:07:08 -08:00
pablodanswer
c5f9cf7959 not too big a change 2025-01-20 13:06:40 -08:00
pablodanswer
be49990ba9 config 2025-01-20 13:06:03 -08:00
pablodanswer
c5f9b756f5 minimal 2025-01-20 13:00:43 -08:00
pablodanswer
fcfb625c23 nit 2025-01-20 13:00:43 -08:00
6 changed files with 662 additions and 423 deletions

View File

@@ -67,6 +67,7 @@ jobs:
NEXT_PUBLIC_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
NEXT_PUBLIC_GTM_ENABLED=true
NEXT_PUBLIC_FORGOT_PASSWORD_ENABLED=true
NODE_OPTIONS=--max-old-space-size=8192
# needed due to weird interactions with the builds for different platforms
no-cache: true
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -60,6 +60,8 @@ jobs:
push: true
build-args: |
ONYX_VERSION=${{ github.ref_name }}
NODE_OPTIONS=--max-old-space-size=8192
# needed due to weird interactions with the builds for different platforms
no-cache: true
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -22,7 +22,7 @@ const cspHeader = `
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: true,
productionBrowserSourceMaps: false,
output: "standalone",
publicRuntimeConfig: {
version,
@@ -72,7 +72,7 @@ const nextConfig = {
// Sentry configuration for error monitoring:
// - Without SENTRY_AUTH_TOKEN and NEXT_PUBLIC_SENTRY_DSN: Sentry is completely disabled
// - With both configured: Only unhandled errors are captured (no performance/session tracking)
// - With both configured: Capture errors and limited performance data
// Determine if Sentry should be enabled
const sentryEnabled = Boolean(
@@ -88,9 +88,11 @@ const sentryWebpackPluginOptions = {
dryRun: !sentryEnabled, // Don't upload source maps when Sentry is disabled
sourceMaps: {
include: ["./.next"],
validate: false,
ignore: ["node_modules"],
urlPrefix: "~/_next",
skip: !sentryEnabled,
stripPrefix: ["webpack://_N_E/"],
validate: true,
cleanArtifacts: true,
},
};

1059
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -31,7 +31,8 @@
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.3",
"@sentry/nextjs": "^8.34.0",
"@sentry/nextjs": "^8.50.0",
"@sentry/tracing": "^7.120.3",
"@stripe/stripe-js": "^4.6.0",
"@types/js-cookie": "^3.0.3",
"@types/lodash": "^4.17.0",

View File

@@ -3,12 +3,10 @@ import * as Sentry from "@sentry/nextjs";
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Only capture unhandled exceptions
enableTracing: false,
// Capture unhandled exceptions and performance data
enableTracing: true,
integrations: [],
tracesSampleRate: 0,
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 0,
autoSessionTracking: false,
tracesSampleRate: 0.1,
});
}