Skip to content

Commit ed9f71d

Browse files
author
Lasim
committed
fix: update absolute path to relative path for MDX file reading in generateMetadata function
1 parent de438f1 commit ed9f71d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/docs/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function generateMetadata({
5656
try {
5757
// Get the absolute path from the page info
5858
const filePath = page.file.path;
59-
const absolutePath = `/Volumes/T9_1/Git/deploy.my/documentation/docs/${filePath}`;
59+
const absolutePath = `./docs/${filePath}`;
6060
const rawContent = await readFile(absolutePath, 'utf-8');
6161
finalTitle = getFinalPageTitle(rawContent, page.data.title);
6262
} catch (error) {

0 commit comments

Comments
 (0)