run 'npm run lint:js:fix'
This commit is contained in:
parent
096fef9b0a
commit
18e20a8808
2 changed files with 6 additions and 3 deletions
|
|
@ -592,11 +592,12 @@ function start(opts) {
|
|||
|
||||
/**
|
||||
* Stop the server gracefully
|
||||
*
|
||||
* @param {string} signal Name of the received signal
|
||||
*/
|
||||
function stopGracefully(signal) {
|
||||
console.log(`Caught signal ${signal}, stopping gracefully`);
|
||||
process.exit();
|
||||
console.log(`Caught signal ${signal}, stopping gracefully`);
|
||||
process.exit();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@ import glyphCompose from '@mapbox/glyph-pbf-composite';
|
|||
|
||||
/**
|
||||
* Generate new URL object
|
||||
*
|
||||
* @param req
|
||||
* @params {object} req - Express request
|
||||
* @returns {URL} object
|
||||
**/
|
||||
*/
|
||||
const getUrlObject = (req) => {
|
||||
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
|
||||
// support overriding hostname by sending X-Forwarded-Host http header
|
||||
|
|
|
|||
Loading…
Reference in a new issue