mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
feat(特殊配置读取添加 AI_SUMMARY 相关配置项):
(cherry picked from commit 7a53b1950c8238636b4c525332e48a50f43ace2d)
This commit is contained in:
@@ -38,9 +38,10 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => {
|
||||
case 'TAG_SORT_BY_COUNT':
|
||||
case 'THEME':
|
||||
case 'LINK':
|
||||
case 'NPM_CDN_BASE':
|
||||
case 'CDNJS_CDN_BASE':
|
||||
case 'JSDELIVR_CDN_BASE':
|
||||
case 'AI_SUMMARY_API':
|
||||
case 'AI_SUMMARY_KEY':
|
||||
case 'AI_SUMMARY_CACHE_TIME':
|
||||
case 'AI_SUMMARY_WORD_LIMIT':
|
||||
// LINK比较特殊,
|
||||
if (key === 'LINK') {
|
||||
if (!extendConfig || Object.keys(extendConfig).length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user