Skip to content

Commit b228d76

Browse files
committed
fix(prerenderer): configure trust proxy to fix http -> https redirects
1 parent a88011a commit b228d76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prerender-server/src/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ register.registerMetric(renderDuration)
4242
let requestCounter = 0
4343

4444
const app = express()
45+
app.set('trust proxy', true)
4546
app.engine('pug', pug.__express)
4647

4748
app.get('/metrics', async (req, res) => {

0 commit comments

Comments
 (0)