移除冲突组件,允许用npm打包

This commit is contained in:
tangly1024.com
2023-07-31 18:59:21 +08:00
parent 72dbf54e11
commit b7c84d5218
5 changed files with 18 additions and 33 deletions

View File

@@ -1,20 +1,19 @@
import { useRouter } from 'next/router'
import useAckee from 'use-ackee'
import BLOG from '@/blog.config'
// import { useRouter } from 'next/router'
// import BLOG from '@/blog.config'
const Ackee = () => {
const router = useRouter()
useAckee(
router.asPath,
{
server: BLOG.ANALYTICS_ACKEE_DATA_SERVER,
domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID
},
{
detailed: false,
ignoreLocalhost: true
}
)
// const router = useRouter()
// useAckee(
// router.asPath,
// {
// server: BLOG.ANALYTICS_ACKEE_DATA_SERVER,
// domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID
// },
// {
// detailed: false,
// ignoreLocalhost: true
// }
// )
return null
}