Skip to content

Commit

Permalink
output error when build
Browse files Browse the repository at this point in the history
  • Loading branch information
eri24816 committed Jun 14, 2024
1 parent ae4202c commit f135d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hugo_build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ versions.forEach((version) => {
// Change the baseURL, contentDir and publishDir in the hugo.toml
const hugoToml = `baseURL = "${baseURLRoot}/${version}"\ncontentDir = "content/${version}"\npublishDir = "public/${version}"\n`+oldConfig;
require('fs').writeFileSync('hugo.toml', hugoToml);
execSync(`hugo`);
execSync(`hugo`,{stdio: 'inherit'});
});

// build the latest version to latest
Expand Down

0 comments on commit f135d4e

Please sign in to comment.