Skip to content

Commit 58bf8a2

Browse files
committed
read the root dir from env variable also
1 parent 253bdd9 commit 58bf8a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export class Config {
1616
static getRootDir() {
1717
if (typeof this.rootDir == "string") {
1818
return this.rootDir;
19+
} else if (typeof process.env.FILE_CMS_ROOT_DIR == "string") {
20+
return process.env.FILE_CMS_ROOT_DIR;
1921
}
2022
throw new NoRootDirSetError();
2123
}

0 commit comments

Comments
 (0)