From ffacc74c9f53d992e0b7bc47fd12fa4ffe1c9eac Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 15 Jul 2023 15:31:31 -0700 Subject: [PATCH] Remove unnecessary icons --- .gitignore | 3 +++ app/components/entry/block.tsx | 1 - app/components/icons/index.js | 4 ---- next.config.mjs | 9 +++++---- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index e72de13b..166a6993 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,6 @@ yalc.lock **/supabase/.temp .vscode + +# next bundle analyzer +analyze/ \ No newline at end of file diff --git a/app/components/entry/block.tsx b/app/components/entry/block.tsx index 63ee3265..a511a030 100644 --- a/app/components/entry/block.tsx +++ b/app/components/entry/block.tsx @@ -28,7 +28,6 @@ const BlockEntry = (props: Props) => { title={description || title} className={styles.link} underline={false} - scroll={true} external={isThirdParty} > {type &&
{type}
} diff --git a/app/components/icons/index.js b/app/components/icons/index.js index 068a753c..e97fce34 100644 --- a/app/components/icons/index.js +++ b/app/components/icons/index.js @@ -1,10 +1,6 @@ -export { default as Book } from './book' -export { default as Document } from './document' export { default as GitHub } from './github' export { default as Twitter } from './twitter' export { default as Mail } from './mail' -export { default as ArrowLeft } from './arrow-left' -export { default as ArrowRight } from './arrow-right' export { default as RSS } from './rss' export { default as LinkedIn } from './linkedin' export { default as Star } from './star' diff --git a/next.config.mjs b/next.config.mjs index 46ec1172..3208df71 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,5 @@ -// const withBundleAnalyzer = require('@next/bundle-analyzer')({ -// enabled: process.env.ANALYZE === 'true', -// }) +import withBundleAnalyzer from '@next/bundle-analyzer' + /** @type {import('next').NextConfig} */ const nextConfig = { swcMinify: true, @@ -44,4 +43,6 @@ const nextConfig = { }, } -export default nextConfig +export default withBundleAnalyzer({ + enabled: process.env.ANALYZE === 'true', +})(nextConfig)