fix(docs): base url
This commit is contained in:
@@ -122,6 +122,7 @@ words:
|
||||
- magnifer
|
||||
- Maru
|
||||
- matchall
|
||||
- mdit
|
||||
- micvad
|
||||
- mineflayer
|
||||
- mingcute
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import type { DefaultTheme } from 'vitepress'
|
||||
|
||||
import { env } from 'node:process'
|
||||
|
||||
import anchor from 'markdown-it-anchor'
|
||||
import unocss from 'unocss/vite'
|
||||
|
||||
@@ -51,6 +53,7 @@ export default defineConfig({
|
||||
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
|
||||
['link', { rel: 'mask-icon', href: '/logo.svg', color: '#ffffff' }],
|
||||
],
|
||||
base: env.BASE_URL || '/',
|
||||
lastUpdated: true,
|
||||
sitemap: { hostname: ogUrl },
|
||||
themeConfig: {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
"version": "2.3.1",
|
||||
"scripts": {
|
||||
"build": "vitepress build",
|
||||
"build:base": "vitepress build --base /docs/",
|
||||
"build:base": "BASE_URL=/docs/ vitepress build",
|
||||
"dev": "vitepress dev",
|
||||
"preview": "vitepress preview",
|
||||
"typecheck": "vue-tsc --noEmit",
|
||||
|
||||
Reference in New Issue
Block a user