Twikoo
A concise, safe and free comment system for static sites, based on Tencent Cloud Development.
Usage
npm i -D twikooSet provider: "Twikoo" and pass your server address to the envId option:
import { commentPlugin } from '@vuepress/plugin-comment'
export default {
plugins: [
commentPlugin({
provider: 'Twikoo',
envId: 'https://twikoo.example.com',
}),
],
}Deploy Backend
Deploy the backend according to the official documentation.
Tips
The plugin automatically sets lang (to zh-CN or en), path (the identifier of the page) and el.
Options
envIdRequired
stringThe Vercel address or the Tencent CloudBase environment ID.
See also: Deploy Backend.
region
stringDefault
'ap-shanghai'The Tencent Cloud region.
Client Config
You can use the defineTwikooConfig function to customize Twikoo:
import { defineTwikooConfig } from '@vuepress/plugin-comment/client'
import { defineClientConfig } from 'vuepress/client'
defineTwikooConfig({
// Twikoo config
})