Skip to content

Commit

Permalink
chore(docs-app): 🤖 fixed doc path
Browse files Browse the repository at this point in the history
affects: docs-app
  • Loading branch information
hlerenow committed Aug 16, 2024
1 parent 4cc071e commit b8d69cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docs-app/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ console.log('🚀 ~ isProd:', isProd);

// https://astro.build/config
export default defineConfig({
base: isProd ? '/chameleon/documents' : '/documents/',
base: isProd ? '/chameleon/documents' : '/documents',
integrations: [
starlight({
title: 'Chameleon Docs',
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-app/src/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';

export const Link = (props: { children: any; url: string }) => {
const baseUrl = import.meta.env.BASE_URL;
return <a href={`${baseUrl}${props.url}`}>{props.children}</a>;
return <a href={`${baseUrl}/${props.url}`}>{props.children}</a>;
};

0 comments on commit b8d69cf

Please sign in to comment.