mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-10 03:08:06 +01:00
14 lines
No EOL
339 B
JavaScript
14 lines
No EOL
339 B
JavaScript
const { createSecureHeaders } = require('next-secure-headers');
|
|
|
|
module.exports = {
|
|
assetPrefix: '/roles-bot/',
|
|
async headers() {
|
|
return [{
|
|
source: '/(.*)',
|
|
headers: createSecureHeaders({
|
|
forceHTTPSRedirect: [true, { maxAge: 60 * 60 * 24 * 4, includeSubDomains: true }],
|
|
referrerPolicy: 'same-origin',
|
|
}),
|
|
}];
|
|
},
|
|
}; |