Commit accd7a3e authored by Eric Betts's avatar Eric Betts

set url with fallback

parent 03c2d51d
...@@ -24,7 +24,7 @@ const app = express() ...@@ -24,7 +24,7 @@ const app = express()
// Correct host when lambda is executed by netlify // Correct host when lambda is executed by netlify
app.use((req, res, next) => { app.use((req, res, next) => {
const url = new global.URL(URL); const url = new global.URL(DEPLOY_PRIME_URL || DEPLOY_URL || URL);
req.headers.host = url.host; req.headers.host = url.host;
next(); next();
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment