@newlogic-digital/core 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- package/modules/Core.js +1 -0
- package/modules/Serve.js +3 -3
- package/package.json +1 -1
package/modules/Core.js
CHANGED
package/modules/Serve.js
CHANGED
@@ -74,12 +74,12 @@ export const Serve = new class {
|
|
74
74
|
root: process.cwd(),
|
75
75
|
};
|
76
76
|
|
77
|
-
if (fs.existsSync(path.join(os.homedir()
|
77
|
+
if (fs.existsSync(path.join(os.homedir(),`.ssh/${Config.serve.cert}.pem`)) && Config.serve.https) {
|
78
78
|
lodash.merge(config, {
|
79
79
|
server: {
|
80
80
|
https: {
|
81
|
-
key: fs.readFileSync(path.join(os.homedir()
|
82
|
-
cert: fs.readFileSync(path.join(os.homedir()
|
81
|
+
key: fs.readFileSync(path.join(os.homedir(),`.ssh/${Config.serve.cert}-key.pem`)),
|
82
|
+
cert: fs.readFileSync(path.join(os.homedir(),`.ssh/${Config.serve.cert}.pem`)),
|
83
83
|
},
|
84
84
|
hmr: {
|
85
85
|
host: 'localhost'
|
package/package.json
CHANGED