diff --git a/docs/src/index.html b/docs/src/index.html index 8db2b0fc..0aff2f7b 100644 --- a/docs/src/index.html +++ b/docs/src/index.html @@ -2,11 +2,11 @@
${head} - + ${app} ${scripts} - + diff --git a/docs/src/main.js b/docs/src/main.js index 038e8abe..9c58ff66 100644 --- a/docs/src/main.js +++ b/docs/src/main.js @@ -10,6 +10,15 @@ Prism.manual = true export default function (Vue, { head }) { head.htmlAttrs = { 'data-theme': 'dark' } + // fix docsearch + if (!window.process) { + window.process = { + env: { + NODE_ENV: 'production', + }, + } + } + Vue.use(PortalVue) Vue.component('Layout', App) Vue.component('Demo', () => import(/* webpackChunkName: "demo" */ '~/components/Demo'))