Merge pull request #1646 from tangly1024/fix/notion-config

Fix/notion config
This commit is contained in:
tangly1024
2023-11-21 12:21:41 +08:00
committed by GitHub
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
NEXT_PUBLIC_VERSION=4.1.0
NEXT_PUBLIC_VERSION=4.1.1
# 可在此添加环境变量,去掉最左边的(# )注释即可
# Notion页面ID,必须

View File

@@ -63,6 +63,9 @@ export const siteConfig = (key, defaultVal = null, extendConfig = null) => {
return defaultVal
} else {
if (typeof val === 'string') {
if (val === 'true' || val === 'false') {
return JSON.parse(val);
}
return val;
} else {
try {

View File

@@ -1,6 +1,6 @@
{
"name": "notion-next",
"version": "4.1.0",
"version": "4.1.1",
"homepage": "https://github.com/tangly1024/NotionNext.git",
"license": "MIT",
"repository": {