Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
fix(fractal): Fix options in Server
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Sep 3, 2018
1 parent 214f729 commit fa35e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli-plugin-fractal/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa35e85

Please sign in to comment.