diff --git a/components/post/PostToc.tsx b/components/post/PostToc.tsx
index 114e72e..dcb3b80 100644
--- a/components/post/PostToc.tsx
+++ b/components/post/PostToc.tsx
@@ -2,7 +2,7 @@ import { getHeadings, SingleToc } from 'lib/utils';
import Anchor from 'components/mdx/Anchor';
import styles from './PostToc.module.css';
import classNames from 'classnames';
-import { useCallback, useState } from 'react';
+import { Fragment, useCallback, useState } from 'react';
import { FiChevronDown } from 'react-icons/fi';
interface Props {
@@ -61,14 +61,14 @@ const PostToc = ({ toc, tocLength }: Props) => {
{toc?.map((h) => (
- <>
-
+
+
{h.children.map((child) => (
))}
- >
+
))}
diff --git a/next.config.mjs b/next.config.mjs
index 1541c73..4962c97 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -1,19 +1,32 @@
-import remarkFrontmatter from 'remark-frontmatter';
-import composePlugins from 'next-compose-plugins';
+// import composePlugins from 'next-compose-plugins';
-const composedConfig = composePlugins([
- /** @type {import('next').NextConfig} */
- {
- reactStrictMode: true,
- output: 'standalone',
- experimental: {
- // runtime: 'nodejs',
- // outputStandalone: true,
- images: { allowFutureImage: true },
- },
- pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
- images: { domains: ['avatars.githubusercontent.com'] },
+// const composedConfig = composePlugins([
+// /** @type {import('next').NextConfig} */
+// {
+// reactStrictMode: true,
+// output: 'standalone',
+// experimental: {
+// // runtime: 'nodejs',
+// // outputStandalone: true,
+// images: { allowFutureImage: true },
+// },
+// pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
+// images: { domains: ['avatars.githubusercontent.com'] },
+// },
+// ]);
+/**
+ * @type {import('next').NextConfig}
+ */
+const nextConfig = {
+ /* config options here */
+ reactStrictMode: true,
+ output: 'standalone',
+ experimental: {
+ // runtime: 'nodejs',
+ // outputStandalone: true,
+ images: { allowFutureImage: true },
},
-]);
+ pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
+};
-export default composedConfig;
+export default nextConfig;