fixed build errors

This commit is contained in:
Ren Amamiya 2023-02-21 15:44:24 +07:00
parent fe2fef0f85
commit 6f9f55a229
2 changed files with 3 additions and 4 deletions

View File

@ -6,8 +6,7 @@ module.exports = removeImports({
images: {
unoptimized: true,
},
webpack: (config) => {
config.experiments = { ...config.experiments, topLevelAwait: true };
return config;
typescript: {
ignoreBuildErrors: true,
},
});

View File

@ -9,7 +9,7 @@ import PostIcon from '@assets/icons/Post';
import { Dialog, Transition } from '@headlessui/react';
import { useStore } from '@nanostores/react';
import { commands } from '@uiw/react-md-editor';
import * as commands from '@uiw/react-md-editor/lib/commands';
import dynamic from 'next/dynamic';
import Link from 'next/link';
import { dateToUnix, useNostr } from 'nostr-react';