roles-bot/packages/website/next.config.js

14 lines
396 B
JavaScript
Raw Normal View History

2022-01-02 19:01:45 +01:00
const { createSecureHeaders } = require("next-secure-headers");
2021-12-22 19:11:40 +01:00
module.exports = {
2022-01-02 19:01:45 +01:00
assetPrefix: '/roles-bot/',
async headers() {
return [{
source: "/(.*)",
headers: createSecureHeaders({
forceHTTPSRedirect: [true, { maxAge: 60 * 60 * 24 * 4, includeSubDomains: true }],
referrerPolicy: "same-origin",
}),
}];
},
2021-12-22 19:11:40 +01:00
}