@@ -268,31 +268,11 @@ export async function getDevDocsFrontMatterUncached(): Promise<FrontMatter[]> {
268268
269269 const source = await readFile ( file , 'utf8' ) ;
270270 const { data : frontmatter } = matter ( source ) ;
271- const sourcePath = path . join ( folder , fileName ) ;
272-
273- // In production builds, fetch git metadata for develop-docs pages only
274- // In development, skip this and fetch on-demand per page (faster dev server startup)
275- let gitMetadata : typeof frontmatter . gitMetadata = undefined ;
276- if (
277- process . env . NODE_ENV !== 'development' &&
278- sourcePath . startsWith ( 'develop-docs/' )
279- ) {
280- const { getGitMetadata} = await import ( './utils/getGitMetadata' ) ;
281- const metadata = getGitMetadata ( sourcePath ) ;
282- // Ensure we create a completely new object to avoid any reference sharing
283- gitMetadata = metadata ? { ...metadata } : undefined ;
284-
285- // Log during build to debug Vercel issues
286- if ( process . env . CI || process . env . VERCEL ) {
287- console . log ( `[BUILD] Git metadata for ${ sourcePath } :` , gitMetadata ) ;
288- }
289- }
290271
291272 return {
292273 ...( frontmatter as FrontMatter ) ,
293274 slug : fileName . replace ( / \/ i n d e x .m d x ? $ / , '' ) . replace ( / \. m d x ? $ / , '' ) ,
294- sourcePath,
295- gitMetadata,
275+ sourcePath : path . join ( folder , fileName ) ,
296276 } ;
297277 } ,
298278 { concurrency : FILE_CONCURRENCY_LIMIT }
0 commit comments