Skip to content

Commit 47e56c3

Browse files
committed
docs: Fix base path issue
Now that we are on bedstack.js.org we don't need a basepath for VitePress anymore.
1 parent 0a04bf5 commit 47e56c3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"username": "postgres",
1515
"password": "postgres"
1616
}
17-
]
17+
],
18+
"cSpell.words": ["bedstack"]
1819
}

docs/.vitepress/config.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
import { defineConfig } from 'vitepress';
22
import { description, name, title } from '../../package.json';
33

4-
const isProd = process.env.NODE_ENV === 'production';
5-
// `name` should be the name of the repository
6-
const base = isProd ? `/${name}/` : '';
7-
84
// https://vitepress.dev/reference/site-config
95
export default defineConfig({
106
title,
117
description,
128
head: [
13-
[
14-
'link',
15-
{ rel: 'icon', type: 'image/svg+xml', href: `${base}icon-dark.svg` },
16-
],
9+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/icon-dark.svg' }],
1710
// Fallback for browsers that don't support SVG favicons
18-
['link', { rel: 'alternate icon', href: `${base}favicon.ico` }],
11+
['link', { rel: 'alternate icon', href: '/favicon.ico' }],
1912
],
20-
base,
2113
appearance: true,
2214
themeConfig: {
2315
// https://vitepress.dev/reference/default-theme-config

0 commit comments

Comments
 (0)