make next config js file
This commit is contained in:
parent
eeee169975
commit
abf8b40591
4
next.config.js
Normal file
4
next.config.js
Normal file
@ -0,0 +1,4 @@
|
||||
export default function webpack(config) {
|
||||
config.resolve.fallback = { ...config.resolve.fallback, fs: false }
|
||||
return config
|
||||
}
|
@ -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
|
||||
}
|
@ -12,7 +12,7 @@ export default function Home({ content, tree, flattenNodes, backLinks }) {
|
||||
<nav className="nav-bar">
|
||||
<FolderTree tree={tree} flattenNodes={flattenNodes} />
|
||||
</nav>
|
||||
<MDContent content={content} handleOpenNewContent={null} backLinks={backLinks} />
|
||||
<MDContent content={content} backLinks={backLinks} />
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user