Skip to content

Commit

Permalink
Merge pull request tangly1024#1646 from tangly1024/fix/notion-config
Browse files Browse the repository at this point in the history
Fix/notion config
  • Loading branch information
tangly1024 authored Nov 21, 2023
2 parents 50b0318 + 1768e53 commit 8d7b1e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.local
Original file line number Diff line number Diff line change
@@ -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,必须
Expand Down
3 changes: 3 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 8d7b1e2

Please sign in to comment.