From 3db2d827ca49497a54a2f9ac2773d3d948fc7198 Mon Sep 17 00:00:00 2001 From: Heat Hamilton Date: Mon, 29 Jul 2024 19:22:44 -0400 Subject: [PATCH 1/2] change sourcemap to hidden and create error to test sourcemaps were uploaded to DD --- next.config.js | 2 +- src/views/homepage/index.tsx | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 83a7362487..00e682c216 100644 --- a/next.config.js +++ b/next.config.js @@ -56,7 +56,7 @@ module.exports = withHashicorp({ config.plugins.push(HashiConfigPlugin()) if (process.env.VERCEL_ENV && process.env.VERCEL_ENV !== 'development') { - config.devtool = 'source-map' + config.devtool = 'hidden-source-map' } return config diff --git a/src/views/homepage/index.tsx b/src/views/homepage/index.tsx index d7b1cb4552..66941d92b0 100644 --- a/src/views/homepage/index.tsx +++ b/src/views/homepage/index.tsx @@ -4,7 +4,7 @@ */ // Third-party imports -import { ReactElement } from 'react' +import { ReactElement, useEffect } from 'react' // Global imports import BaseLayout from 'layouts/base-layout' @@ -20,6 +20,13 @@ import { import s from './homepage.module.css' function HomePageView(): ReactElement { + useEffect(() => { + const timer = setTimeout(() => { + throw new Error('This is a new test error thrown after 5 seconds') + }, 5000) + + return () => clearTimeout(timer) // Cleanup the timer on component unmount + }, []) return ( }>
From c9e0c3436dcac76b8603dbe21f60afe897fd5152 Mon Sep 17 00:00:00 2001 From: Heat Hamilton <55773810+heatlikeheatwave@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:25:29 -0400 Subject: [PATCH 2/2] Remove error for testing purposes from homepage --- src/views/homepage/index.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/views/homepage/index.tsx b/src/views/homepage/index.tsx index 66941d92b0..d7b1cb4552 100644 --- a/src/views/homepage/index.tsx +++ b/src/views/homepage/index.tsx @@ -4,7 +4,7 @@ */ // Third-party imports -import { ReactElement, useEffect } from 'react' +import { ReactElement } from 'react' // Global imports import BaseLayout from 'layouts/base-layout' @@ -20,13 +20,6 @@ import { import s from './homepage.module.css' function HomePageView(): ReactElement { - useEffect(() => { - const timer = setTimeout(() => { - throw new Error('This is a new test error thrown after 5 seconds') - }, 5000) - - return () => clearTimeout(timer) // Cleanup the timer on component unmount - }, []) return ( }>