Skip to content

Commit

Permalink
Fix netlify dev --live (#897)
Browse files Browse the repository at this point in the history
* Improve a log

* Dev Live: Fix the port to be proxied
  • Loading branch information
RaeesBhatti authored May 12, 2020
1 parent 9e3eeb6 commit f430ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ async function serveRedirect(req, res, proxy, match, options) {
if (match.force || isInternal(destURL) || (!staticFile && !options.framework && destStaticFile)) {
req.url = destStaticFile ? destStaticFile : destURL
status = match.status
console.log(`${NETLIFYDEVLOG} Rewrote URL to `, req.url)
console.log(`${NETLIFYDEVLOG} Rewrote URL to`, req.url)
}

if (isFunction(options.functionsPort, req.url)) {
Expand Down Expand Up @@ -468,7 +468,7 @@ class DevCommand extends Command {
url = liveSession.session_url
process.env.BASE_URL = url

await connectTunnel(liveSession, accessToken, settings.proxyPort, this.log)
await connectTunnel(liveSession, accessToken, settings.port, this.log)
}

await this.config.runHook('analytics', {
Expand Down

0 comments on commit f430ee4

Please sign in to comment.