Skip to content

Commit

Permalink
fix: renamed hosts to host. the value can be a string or an array of …
Browse files Browse the repository at this point in the history
…strings
  • Loading branch information
frankpagan committed Jun 10, 2023
1 parent 053f74a commit 932f60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CoCreate.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
"name": "index.html",
"path": "/docs/cli/index.html",
"src": "{{./docs/index.html}}",
"hosts": [
"host": [
"*",
"general.cocreate.app"
],
Expand Down
4 changes: 2 additions & 2 deletions src/commands/fs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function update(MdPath) {
"name": "index.html",
"path": "/docs/${name}/index.html",
"src": "{{./docs/index.html}}",
"hosts": [
"host": [
"general.cocreate.app"
],
"directory": "/docs/${name}",
Expand All @@ -56,7 +56,7 @@ function update(MdPath) {

if (!document_id.length)
console.log("Document_id Undefined: ", MdPath);
if (document_id.length != 24 && document_id.length != 0 )
if (document_id.length != 24 && document_id.length != 0)
console.log("Document_id not valid! please check your config: ", MdPath);
else {
console.log(MdPath, " -> document_id : ", document_id);
Expand Down

0 comments on commit 932f60b

Please sign in to comment.