diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..cade2c9 --- /dev/null +++ b/next.config.js @@ -0,0 +1,4 @@ +export default function webpack(config) { + config.resolve.fallback = { ...config.resolve.fallback, fs: false } + return config +} diff --git a/next.config.ts b/next.config.ts deleted file mode 100644 index 8a72074..0000000 --- a/next.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default function webpack(config: { resolve: { fallback: Record } }): { resolve: { fallback: Record } } { - config.resolve.fallback = { ...config.resolve.fallback, fs: false } - return config -} diff --git a/pages/notes/index.tsx b/pages/notes/index.tsx index 887d678..da79a57 100644 --- a/pages/notes/index.tsx +++ b/pages/notes/index.tsx @@ -12,7 +12,7 @@ export default function Home({ content, tree, flattenNodes, backLinks }) { - + );