From 86e82159c43e164cd6cc4e3c9732ba8348499a77 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 17 Nov 2022 23:39:37 +0000 Subject: [PATCH] chore: enable sourcemaps --- next.config.js | 1 + src/pages/_site/[site]/feed/notifications.tsx | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index e1c91a5c..d9974303 100644 --- a/next.config.js +++ b/next.config.js @@ -38,6 +38,7 @@ module.exports = withBundleAnalyzer( scrollRestoration: true, }, output: "standalone", + productionBrowserSourceMaps: true, webpack(config) { config.plugins.push(new UnoCSS()) diff --git a/src/pages/_site/[site]/feed/notifications.tsx b/src/pages/_site/[site]/feed/notifications.tsx index f524d24b..34a3eda5 100644 --- a/src/pages/_site/[site]/feed/notifications.tsx +++ b/src/pages/_site/[site]/feed/notifications.tsx @@ -1,7 +1,5 @@ import { GetServerSideProps } from "next" import { fetchGetSite, fetchGetNotifications } from "~/queries/site.server" -import { fetchGetPagesBySite } from "~/queries/page.server" -import { PageVisibilityEnum } from "~/lib/types" import { getSiteLink } from "~/lib/helpers" import { QueryClient } from "@tanstack/react-query" import { renderPageContent } from "~/markdown"