Skip to content

Commit be3cd7e

Browse files
committed
chore: vitepress config adjustments
1 parent 2b03847 commit be3cd7e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.vitepress/config.mts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { defineConfig } from 'vitepress'
22

3-
const isProd = process.env.NODE_ENV === 'production'
3+
// Uncomment for local tests
4+
//const BASE = '/'
5+
const BASE = `/mikros-docs/`
46

57
export default defineConfig({
68
srcDir: 'src',
7-
base: isProd ? '/mikros-docs/' : '/',
9+
base: BASE,
810

911
lang: 'en-US',
1012
title: 'Mikros',
@@ -44,15 +46,15 @@ export default defineConfig({
4446
],
4547
'/rust/': [
4648
{ text: 'Quickstart', link: '/rust/quickstart' },
47-
{ text: 'Overview', link: '/go/overview' },
49+
{ text: 'Overview', link: '/rust/overview' },
4850
{ text: 'Features', link: '/rust/features' },
4951
{ text: 'New service type', link: '/rust/new-service-type' },
5052
{ text: 'Macros', link: '/rust/macros' },
5153
{ text: 'Examples', link: '/rust/examples' },
5254
{ text: 'Roadmap', link: '/rust/roadmap' },
5355
{ text: 'Reference (docs.rs)', link: 'https://docs.rs/mikros' },
5456
],
55-
'/protobuf': [
57+
'/protobuf/': [
5658
{ text: 'Extensions', link: '/protobuf/extensions' },
5759
{ text: 'OpenAPI', link: '/protobuf/openapi' },
5860
],
@@ -75,6 +77,6 @@ export default defineConfig({
7577
},
7678
head: [
7779
['meta', { name: 'theme-color', content: '#0b0f19' }],
78-
['link', { rel: 'icon', href: '/favicon.svg' }]
80+
['link', { rel: 'icon', href: 'favicon.svg' }]
7981
],
8082
})

0 commit comments

Comments
 (0)