mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-24 20:09:02 +00:00
fix: remove broken npx @hanzo/docs-mdx from dev-docs pre-build
MDX collection generation is already handled by createMDX() plugin in next.config.ts. The npx CLI call fails on CI because tsdown bundles @hanzo/docs-mdx with external deps that aren't resolved in the CI environment.
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
// Pre-build script for Hanzo Dev docs
|
||||
// Generates MDX collection files
|
||||
// MDX collection generation is handled by createMDX() in next.config.ts
|
||||
// This script is reserved for any additional pre-build tasks
|
||||
|
||||
import { execSync } from 'child_process';
|
||||
|
||||
console.log('Running pre-build...');
|
||||
|
||||
try {
|
||||
// Generate MDX collections
|
||||
execSync('npx @hanzo/docs-mdx', { stdio: 'inherit' });
|
||||
console.log('Pre-build complete');
|
||||
} catch (error) {
|
||||
console.error('Pre-build failed:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log('Pre-build: no additional steps needed');
|
||||
|
||||
Reference in New Issue
Block a user