mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #1646 from tangly1024/fix/notion-config
Fix/notion config
This commit is contained in:
@@ -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,必须
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user