mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-26 21:55:52 +10:00
docs: enable algolia search in production
This commit is contained in:
@@ -127,3 +127,4 @@ exports.bootstrap = function ({
|
||||
cli.outputHelp()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,10 +33,10 @@ module.exports = ctx => ({
|
||||
editLinks: true,
|
||||
docsDir: 'packages/docs/docs',
|
||||
// #697 Provided by the official algolia team.
|
||||
// algolia: {
|
||||
// apiKey: '3a539aab83105f01761a137c61004d85',
|
||||
// indexName: 'vuepress'
|
||||
// },
|
||||
algolia: ctx.isProd ? ({
|
||||
apiKey: '3a539aab83105f01761a137c61004d85',
|
||||
indexName: 'vuepress'
|
||||
}) : null,
|
||||
locales: {
|
||||
'/': {
|
||||
label: 'English',
|
||||
|
||||
Reference in New Issue
Block a user