1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

(nextjs) fixed fonts

This commit is contained in:
Fedor Katurov 2022-01-19 09:48:16 +07:00
parent d9127e5b7c
commit 7e14b52bf9
2 changed files with 10 additions and 2 deletions

View file

@ -1,7 +1,8 @@
/** used to transpile UMD and CJS modules */
const withTM = require('next-transpile-modules')(['ramda']);
module.exports = withTM({
/* Your Next.js config */
/** rewrite old-style node paths */
async rewrites() {
return [
{
@ -10,4 +11,7 @@ module.exports = withTM({
},
];
},
/** don't try to optimize fonts */
optimizeFonts: false,
});

View file

@ -27,7 +27,11 @@ const NodeComments: FC<IProps> = memo(({ order }) => {
onSaveComment,
} = useCommentContext();
const groupped: ICommentGroup[] = useGrouppedComments(comments, order, lastSeenCurrent);
const groupped: ICommentGroup[] = useGrouppedComments(
comments,
order,
lastSeenCurrent ?? undefined
);
const more = useMemo(
() =>