Skip to content

Commit

Permalink
fix: vitepress deployment
Browse files Browse the repository at this point in the history
closes #48
  • Loading branch information
yamcodes committed Oct 9, 2023
1 parent 99f66d1 commit b765fc5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
9 changes: 7 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -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: [
Expand All @@ -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,
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b765fc5

Please sign in to comment.