From 400a6abe74c5dcbb6690ff87c84e27bace63106a Mon Sep 17 00:00:00 2001 From: Antigravity AI Date: Sun, 10 May 2026 11:36:39 +1200 Subject: [PATCH] fix(build): disable Sentry webpack config to prevent octal escape syntax errors --- .gitignore | 7 ++++++- next.config.ts | 17 ++++++++--------- package.json | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 25fc3e41..63b055a1 100644 --- a/.gitignore +++ b/.gitignore @@ -89,4 +89,9 @@ packages/*/dist/ packages/wwv-data-engine/ # IDE workspace files -*.code-workspace \ No newline at end of file +*.code-workspace + +# Build outputs and generated assets +/public/cesium/ +build_output*.log +build_output*.txt \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index 296633ca..1a6c3bad 100644 --- a/next.config.ts +++ b/next.config.ts @@ -90,21 +90,20 @@ const nextConfig: NextConfig = { import { withSentryConfig } from "@sentry/nextjs"; export default withSentryConfig(nextConfig, { - // For all available options, see: - // https://github.com/getsentry/sentry-webpack-plugin#options org: process.env.SENTRY_ORG, project: process.env.SENTRY_PROJECT, sentryUrl: process.env.GLITCHTIP_SERVER_URL, authToken: process.env.SENTRY_AUTH_TOKEN, - // Automatically tree-shake Sentry logger statements to reduce bundle size - disableLogger: true, - - // Hides source maps from generated client bundles + // GlitchTip doesn't support Sentry's Webpack Debug ID injection correctly. + // We disable the Webpack config modification entirely to avoid "Octal escape sequences" + // syntax errors when Next.js bundles WebAssembly fallbacks (e.g., long.js, cesium). + webpack: { + disableSentryConfig: true, + }, + + // Disable uploading source maps sourcemaps: { disable: true, }, - - // Upload a larger set of source maps for prettier stack traces (increases build time) - widenClientFileUpload: true, }); diff --git a/package.json b/package.json index a798997d..1b24bab0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "worldwideview", - "version": "2.1.7", + "version": "2.1.8", "private": true, "type": "module", "packageManager": "pnpm@9.15.4",