Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function crawlAndWrite(configuration) {

server.listen(program.port)

debug('Server started')
debug('Server started: http://localhost:%i', program.port)

// render routes
const promises = configuration.routes.map((route) => async() => {
Expand Down Expand Up @@ -108,9 +108,9 @@ async function prepRoute(route, configuration) {

debug('Nightmare started')

const host = configuration.hostname ? configuration.hostname : `http${configuration.https ? 's' : ''}://localhost:${program.port}`
const host = `http${configuration.https ? 's' : ''}://localhost:${program.port}`
const url = `${host}/${route}`

const content = await nightmare
.useragent(configuration.useragent)
.viewport(configuration.dimensions.width, configuration.dimensions.height)
Expand Down