anchor/docs/src/.vuepress/enhanceApp.js

16 lines
460 B
JavaScript
Executable File

/**
* Client app enhancement file.
*
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
*/
export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData, // site metadata
}) => {
// ...apply enhancements for the site.
router.addRoutes([{ path: "/", redirect: "/getting-started/introduction" }]);
};