diff --git a/packages/react-devtools/app.html b/packages/react-devtools/app.html
index c822764bea5f0..c40b72ab65ff9 100644
--- a/packages/react-devtools/app.html
+++ b/packages/react-devtools/app.html
@@ -151,8 +151,10 @@
try {
if (process.env.KEY && process.env.CERT) {
- options.key = fs.readFileSync(process.env.KEY);
- options.cert = fs.readFileSync(process.env.CERT);
+ options = {
+ key: fs.readFileSync(process.env.KEY),
+ cert: fs.readFileSync(process.env.CERT)
+ };
useHttps = true;
}
} catch (err) {