fix(vercel): refactor and lint root code sources & update pnpm installation command for vercel by swapping default vercel pnpm version instead of using third-party registry sources

This commit is contained in:
Anda Toshiki 2023-09-13 20:02:09 -07:00
parent 2758cc94be
commit 10025bdde7
3 changed files with 6 additions and 7 deletions

View File

@ -81,16 +81,16 @@ export default {
setup() {
const route = useRoute()
const initZoom = () => {
mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new?
mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new?
}
onMounted(() => {
initZoom()
initZoom()
})
watch(
() => route.path,
() => nextTick(() => initZoom()),
() => route.path,
() => nextTick(() => initZoom())
)
},
},
enhanceApp(ctx) {
// custom component tag/slot

View File

@ -11,7 +11,6 @@ declare module '@vue/runtime-core' {
export interface GlobalComponents {
AsideSponsors: typeof import('./.vitepress/theme/components/AsideSponsors.vue')['default']
CardLink: typeof import('./.vitepress/theme/components/CardLink.vue')['default']
CodeTitle: typeof import('./.vitepress/theme/components/layout/CodeTitle.vue')['default']
Comment: typeof import('./.vitepress/theme/components/layout/Comment.vue')['default']
Copyright: typeof import('./.vitepress/theme/components/Copyright.vue')['default']
Footer: typeof import('./.vitepress/theme/components/layout/Footer.vue')['default']

View File

@ -1,5 +1,5 @@
{
"installCommand": "pnpm add -g pnpm@8.3.1 && pnpm install --force",
"installCommand": "pnpm i",
"buildCommand": "pnpm docs:build",
"devCommand": "pnpm docs:dev",
"cleanUrls": true,