From fa35e85dcef8a74a4ccd38207d0328d7172c6179 Mon Sep 17 00:00:00 2001 From: "romain.lenzotti" Date: Mon, 3 Sep 2018 09:57:48 +0200 Subject: [PATCH] fix(fractal): Fix options in Server --- packages/cli-plugin-fractal/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli-plugin-fractal/server.js b/packages/cli-plugin-fractal/server.js index 4f70b6c..efd4782 100644 --- a/packages/cli-plugin-fractal/server.js +++ b/packages/cli-plugin-fractal/server.js @@ -12,10 +12,10 @@ const chalk = require('chalk'); const express = require('express'); const config = require('@node-sitecore/config'); -module.exports = ({ httpsOptions }) => { +module.exports = ({ httpsOptions } = {}) => { const { outputDir, middlewaresDir } = config.fractal; const app = express(); - const server = httpsOptions ? http.createServer(app) : https.createServer(httpsOptions, app); + const server = !httpsOptions ? http.createServer(app) : https.createServer(httpsOptions, app); const portIndex = process.argv.indexOf('--port'); const port = (portIndex > -1 && process.argv[portIndex + 1]) || 3000;