fix(configure): set content-pipeline projectRoot to the clone's path (was comiida's)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SYHWLHihq3v9nxNwoPCKSn
This commit is contained in:
parent
0acc80f8e4
commit
ae80a2cdc6
2 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
"language": "en"
|
||||
},
|
||||
"paths": {
|
||||
"projectRoot": "/www/wwwroot/comiida.com",
|
||||
"projectRoot": "/www/wwwroot/seedproject-web",
|
||||
"appDir": "app",
|
||||
"blogContentDir": "app/src/content/blog",
|
||||
"blogDataFile": "app/src/lib/blog-data.js",
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ if (existsSync(resolve(root, "content-pipeline/config.json"))) {
|
|||
const cp = read("content-pipeline/config.json");
|
||||
cp.site = { ...cp.site, url: site.url, name: site.name, topic: site.topic, audience: site.audience, language: site.language };
|
||||
cp.author = { ...(cp.author || {}), slug: site.author.slug, name: site.author.name };
|
||||
if (cp.paths) cp.paths.projectRoot = root; // this clone's absolute path, not comiida's
|
||||
if (cp.editorial) cp.editorial.timezone = site.timezone;
|
||||
if (cp.image && cp.image.credit) cp.image.credit.author = site.name;
|
||||
write("content-pipeline/config.json", cp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue