make next config js file

This commit is contained in:
Triston Armstrong 2023-12-30 10:49:39 -06:00
parent eeee169975
commit abf8b40591
3 changed files with 5 additions and 5 deletions

4
next.config.js Normal file
View File

@ -0,0 +1,4 @@
export default function webpack(config) {
config.resolve.fallback = { ...config.resolve.fallback, fs: false }
return config
}

View File

@ -1,4 +0,0 @@
export default function webpack(config: { resolve: { fallback: Record<string, unknown> } }): { resolve: { fallback: Record<string, unknown> } } {
config.resolve.fallback = { ...config.resolve.fallback, fs: false }
return config
}

View File

@ -12,7 +12,7 @@ export default function Home({ content, tree, flattenNodes, backLinks }) {
<nav className="nav-bar"> <nav className="nav-bar">
<FolderTree tree={tree} flattenNodes={flattenNodes} /> <FolderTree tree={tree} flattenNodes={flattenNodes} />
</nav> </nav>
<MDContent content={content} handleOpenNewContent={null} backLinks={backLinks} /> <MDContent content={content} backLinks={backLinks} />
</div> </div>
</Layout> </Layout>
); );