|
|
'use strict';
|
|
|
|
|
|
const fs = require('fs');
|
|
|
const dnsPrefetch = require('../../config/dns-prefetch');
|
|
|
|
|
|
let devHost = '127.0.0.1';
|
|
|
|
|
|
fs.readFile('.devhost', (err, buf)=> {
|
...
|
...
|
@@ -12,7 +14,8 @@ fs.readFile('.devhost', (err, buf)=> { |
|
|
module.exports = () => {
|
|
|
return (req, res, next) => {
|
|
|
Object.assign(res.locals, {
|
|
|
devHost: devHost
|
|
|
devHost: devHost,
|
|
|
dnsPrefetch: dnsPrefetch
|
|
|
});
|
|
|
|
|
|
next();
|
...
|
...
|
|