fix(nextjs): disable the default-server x-powered-by option on the express server (#4180)

This way, when disabling the same option in the next.config.js it doesn't just revert to express

ISSUES CLOSED: #3961
This commit is contained in:
Adam L Barrett 2020-12-03 09:48:58 -06:00 committed by GitHub
parent d42bd2d8c4
commit 3106a53c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ export async function defaultServer(
await app.prepare();
const server: express.Express = express();
server.disable('x-powered-by');
// Set up the proxy.
if (proxyConfig) {