Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

dx(frontend): Fix source map upload configuration (#11378)

Reinier van der Leera054740aacfa
diff --git a/autogpt_platform/frontend/next.config.mjs b/autogpt_platform/frontend/next.config.mjs
index 88dda1a1fb..d4df72a643 100644
--- a/autogpt_platform/frontend/next.config.mjs
+++ b/autogpt_platform/frontend/next.config.mjs
@@ -80,10 +80,10 @@ export default isDevelopmentBuild
// This helps Sentry with sourcemaps... https://docs.sentry.io/platforms/javascript/guides/nextjs/sourcemaps/
sourcemaps: {
- disable: false, // Source maps are enabled by default
- assets: ["**/*.js", "**/*.js.map"], // Specify which files to upload
- ignore: ["**/node_modules/**"], // Files to exclude
- deleteSourcemapsAfterUpload: true, // Security: delete after upload
+ disable: false,
+ assets: [".next/**/*.js", ".next/**/*.js.map"],
+ ignore: ["**/node_modules/**"],
+ deleteSourcemapsAfterUpload: false, // Source is public anyway :)
},
// Automatically tree-shake Sentry logger statements to reduce bundle size