From ad881bde93ac0520ebfe27e019606ea1b3d1f60e Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 4 Jul 2021 12:25:57 +0800 Subject: [PATCH] build: remove next.config.js --- next.config.js | 5 ----- pages/articles/[id].tsx | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 next.config.js diff --git a/next.config.js b/next.config.js deleted file mode 100644 index c98cb2f..0000000 --- a/next.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { - return config; - }, -}; diff --git a/pages/articles/[id].tsx b/pages/articles/[id].tsx index 80c9568..24e8229 100644 --- a/pages/articles/[id].tsx +++ b/pages/articles/[id].tsx @@ -4,7 +4,7 @@ import { GetServerSideProps } from "next"; import { addApolloState, initializeApollo } from "../../commons/graphql/client"; import { ARTICLE } from "../../commons/graphql/queries"; import { Article } from "../../commons/graphql/generated"; -import { format, formatRelative } from "date-fns"; +import { formatRelative } from "date-fns"; import { zhCN } from "date-fns/locale"; interface Props { article: Article;