From 127a9ea34e714331b63d69e9183773c96eeff61f Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 8 Dec 2022 12:40:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=AA=E9=9D=99=E6=80=81=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=B3=E7=99=BD=EF=BC=8Cwaline=E6=94=AF=E6=8C=81=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=8F=8Areaction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 2 +- components/WalineComponent.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/blog.config.js b/blog.config.js index 4497b3d3..4baa8fe3 100644 --- a/blog.config.js +++ b/blog.config.js @@ -2,7 +2,7 @@ const BLOG = { // Important page_id!!!Duplicate Template from https://www.notion.so/tanghh/02ab3b8678004aa69e9e415905ef32a5 NOTION_PAGE_ID: process.env.NOTION_PAGE_ID || '02ab3b8678004aa69e9e415905ef32a5', - PSEUDO_STATIC: true, // 伪静态路径,开启后所有文章URL都以 .html 结尾。 + PSEUDO_STATIC: false, // 伪静态路径,开启后所有文章URL都以 .html 结尾。 NEXT_REVALIDATE_SECOND: 5, // 更新内容缓存间隔 单位(秒);即每个页面有5秒的纯静态期、此期间无论多少次访问都不会抓取notion数据;调大该值有助于节省Vercel资源、同时提升访问速率,但也会使文章更新有延迟。 THEME: process.env.NEXT_PUBLIC_THEME || 'hexo', // 主题, 支持 ['next','hexo',"fukasawa','medium','example'] @see https://preview.tangly1024.com THEME_SWITCH: process.env.NEXT_PUBLIC_THEME_SWITCH || false, // 是否显示切换主题按钮 diff --git a/components/WalineComponent.js b/components/WalineComponent.js index 00ee3242..09983f23 100644 --- a/components/WalineComponent.js +++ b/components/WalineComponent.js @@ -25,7 +25,9 @@ const WalineComponent = (props) => { waline = init({ ...props, el: containerRef.current, - serverURL: BLOG.COMMENT_WALINE_SERVER_URL + serverURL: BLOG.COMMENT_WALINE_SERVER_URL, + lang: BLOG.lang, + reaction: true }) }