mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 07:26:47 +00:00
部分公共组件配置化
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import BLOG from '@/blog.config'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import ExternalScript from './ExternalScript'
|
||||
|
||||
/**
|
||||
@@ -10,8 +10,8 @@ export default function WebWhiz() {
|
||||
const props = {
|
||||
id: '__webwhizSdk__',
|
||||
src: 'https://www.unpkg.com/webwhiz@1.0.0/dist/sdk.js',
|
||||
baseUrl: BLOG.WEB_WHIZ_BASE_URL,
|
||||
chatbotId: BLOG.WEB_WHIZ_CHAT_BOT_ID
|
||||
baseUrl: siteConfig('WEB_WHIZ_BASE_URL'),
|
||||
chatbotId: siteConfig('WEB_WHIZ_CHAT_BOT_ID')
|
||||
}
|
||||
return <ExternalScript {...props}/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user