diff --git a/bun.lockb b/bun.lockb index baa879b..7790c44 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 045ab89..133f1ba 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,9 +1,12 @@ import { defineConfig } from 'vitepress'; +import { name, title, description } from '../../package.json'; + +const isProd = process.env.NODE_ENV === 'production'; // https://vitepress.dev/reference/site-config export default defineConfig({ - title: 'RealWorld Elysia Docs', - description: 'A Vite Press docs of Real World', + title, + description, themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ @@ -25,4 +28,6 @@ export default defineConfig({ { icon: 'github', link: 'https://github.com/vuejs/vitepress' }, ], }, + // `name` should be the name of the repository + base: isProd ? `/${name}/` : undefined, }); diff --git a/package.json b/package.json index 47536ed..d590881 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ }, "devDependencies": { "@biomejs/biome": "1.2.2", + "@types/node": "^20.8.3", "bun-types": "latest", "drizzle-kit": "^0.19.13", "husky": "^8.0.3",