Skip to content

Commit dd625ef

Browse files
committed
fix: Add path and pathname
1 parent 96dd9ce commit dd625ef

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

CoCreate.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ module.exports = {
88
"object": {
99
"_id": "637ca36250234ef1671ce30f",
1010
"name": "index.html",
11-
"path": "/docs/cli/index.html",
11+
"path": "/docs/cli",
12+
"pathname": "/docs/cli/index.html",
1213
"src": "{{./docs/index.html}}",
1314
"host": [
1415
"*"
1516
],
16-
"directory": "/docs/cli",
17-
"parentDirectory": "{{parentDirectory}}",
17+
"directory": "cli",
1818
"content-type": "{{content-type}}",
19-
"public": "true",
20-
"website_id": "644d4bff8036fb9d1d1fd69c"
19+
"public": "true"
2120
}
2221
}
2322
],

src/commands/fs/config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ function update(MdPath) {
3737
"object": {
3838
"_id": "${object}",
3939
"name": "index.html",
40-
"path": "/docs/${name}/index.html",
40+
"path": "/docs/${name}",
41+
"pathname": "/docs/${name}/index.html",
4142
"src": "{{./docs/index.html}}",
4243
"host": [
4344
"general.cocreate.app"
4445
],
45-
"directory": "/docs/${name}",
46-
"parentDirectory": "{{parentDirectory}}",
46+
"directory": "${name}",
4747
"content-type": "{{content-type}}",
48-
"public": "true",
49-
"website_id": "644d4bff8036fb9d1d1fd69c"
48+
"public": "true"
5049
}
5150
}
5251
]

0 commit comments

Comments
 (0)