roles-bot/packages/website/next.config.js
2022-04-14 12:41:23 +02:00

14 lines
No EOL
329 B
JavaScript

const { createSecureHeaders } = require('next-secure-headers');
module.exports = {
assetPrefix: '/',
async headers() {
return [{
source: '/(.*)',
headers: createSecureHeaders({
forceHTTPSRedirect: [true, { maxAge: 60 * 60 * 24 * 4, includeSubDomains: true }],
referrerPolicy: 'same-origin',
}),
}];
},
};