Up 0.3.0 — Custom domains, logging & stability improvements and more.

Purchasing domains

Custom domains

{
"name": "example-site",
"stages": {
"production": {
"domain": "example.com"
},
"staging": {
"domain": "stage.example.com"
}
}
}
{
"name": "example-api",
"stages": {
"production": {
"domain": "api.example.com"
}
}
}

External registrars

Multi-line log capturing

ReferenceError: sloths is not defined
at repl:1:1
at ContextifyScript.Script.runInThisContext (vm.js:44:33)
at REPLServer.defaultEval (repl.js:239:29)
at bound (domain.js:301:14)
at REPLServer.runBound [as eval] (domain.js:314:12)
at REPLServer.onLine (repl.js:440:10)
at emitOne (events.js:120:20)
at REPLServer.emit (events.js:210:7)
at REPLServer.Interface._onLine (readline.js:279:10)
at REPLServer.Interface._line (readline.js:626:8)

JSON log capturing

{
"level": "info",
"message": "User Login",
"fields": {
"user_id": "sloth"
}
}
function log(level, message, fields = {}) {
const entry = { level, message, fields }
console.log(JSON.stringify(entry))
}
log('info', 'User Login', { user_id: "sloth" })

Log query units

up logs 'size >= 5kb'
up logs 'size >= 10.5mb'
up logs 'duration >= 500ms'
up logs 'duration >= 1.5s'

Log query stage short-hands

up logs 'stage = "production" and status >= 400'
up logs 'production and status >= 400'

Hook arrays

{
"hooks": {
"build": [
"command 1",
"command 2",
"command 3"
]
}
}

Reverse proxy improvements

Miscellaneous

  • add sub-process cleanup and grace period. Closes #311
  • add UP_STAGE env var. Closes #200
  • add environment variables to up start
  • add stage path support for defining a basepath (ex /v1 ) for a domain
  • add Lambda-specific logs to output (memory usage etc)
  • rename .proxy.timeout to .proxy.listen_timeout (BREAKING)
  • fix gzip handling when already compressed by the origin. Closes #328
  • fix permission issues for static file serving. Closes #385

Status

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store