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
|
* Stop the server gracefully
|
||||||
|
*
|
||||||
* @param {string} signal Name of the received signal
|
* @param {string} signal Name of the received signal
|
||||||
*/
|
*/
|
||||||
function stopGracefully(signal) {
|
function stopGracefully(signal) {
|
||||||
console.log(`Caught signal ${signal}, stopping gracefully`);
|
console.log(`Caught signal ${signal}, stopping gracefully`);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,11 @@ import glyphCompose from '@mapbox/glyph-pbf-composite';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate new URL object
|
* Generate new URL object
|
||||||
|
*
|
||||||
|
* @param req
|
||||||
* @params {object} req - Express request
|
* @params {object} req - Express request
|
||||||
* @returns {URL} object
|
* @returns {URL} object
|
||||||
**/
|
*/
|
||||||
const getUrlObject = (req) => {
|
const getUrlObject = (req) => {
|
||||||
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
|
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
|
||||||
// support overriding hostname by sending X-Forwarded-Host http header
|
// support overriding hostname by sending X-Forwarded-Host http header
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue