We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18ccbf commit b02fd6dCopy full SHA for b02fd6d
servor.js
@@ -37,6 +37,16 @@ module.exports = async ({
37
38
root = root.startsWith('/') ? root : path.join(process.cwd(), root);
39
40
+ if (!fs.existsSync(root)) {
41
+ console.log(`[ERR] Root directory ${root} does not exist!`);
42
+ process.exit();
43
+ }
44
+
45
+ if (!fs.statSync(root).isDirectory()) {
46
+ console.log(`[ERR] Root directory "${root}" is not directory!`);
47
48
49
50
const reloadClients = [];
51
const protocol = credentials ? 'https' : 'http';
52
const server = credentials
0 commit comments