Skip to content

Commit

Permalink
fix: base url
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Apr 26, 2024
1 parent b09cf14 commit 219d68a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { generateRpcDocs } from './scripts/rpc-docs'
export default async () => {
const { title, description, homepage } = await readPackageJSON()
const isProduction = env.DEPLOYMENT_MODE === 'production'
const base = isProduction ? '/developers' : '/developer-center/'
const base = isProduction ? '/developers' : '/developer-center'
consola.info(`Building for ${isProduction ? 'production' : 'development'}. The base URL is ${base}`)

await generateWebClientDocs()
Expand Down Expand Up @@ -82,12 +82,12 @@ export default async () => {

head: [
['meta', { name: 'theme-color', content: '#ffffff' }],
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: `${base}favicons/apple-touch-icon.png` }],
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: `${base}favicons/favicon-32x32.png` }],
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: `${base}favicons/favicon-16x16.png` }],
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: `${base}/favicons/apple-touch-icon.png` }],
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: `${base}/favicons/favicon-32x32.png` }],
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: `${base}/favicons/favicon-16x16.png` }],
// ['link', { rel: 'manifest', href: `${base}favicons/site.webmanifest` }],
['link', { rel: 'mask-icon', href: `${base}favicons/safari-pinned-tab.svg`, color: '#eaaf0c' }],
['link', { rel: 'shortcut icon', href: `${base}favicons/favicon.ico` }],
['link', { rel: 'mask-icon', href: `${base}/favicons/safari-pinned-tab.svg`, color: '#eaaf0c' }],
['link', { rel: 'shortcut icon', href: `${base}/favicons/favicon.ico` }],
['meta', { name: 'msapplication-TileColor', content: '#2b5797' }],
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }],

Expand Down

0 comments on commit 219d68a

Please sign in to comment.