Merge branch 'master' into release

This commit is contained in:
Abhinav-grd 2021-08-29 18:00:42 +05:30
commit ff330f51ae

View file

@ -11,6 +11,18 @@ const gitSha = cp.execSync('git rev-parse --short HEAD', {
encoding: 'utf8',
});
// eslint-disable-next-line camelcase
const COOP_COEP_Headers = [
{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin',
},
{
key: 'Cross-Origin-Embedder-Policy',
value: 'require-corp',
},
];
module.exports = withSentryConfig(
withWorkbox(
withBundleAnalyzer({
@ -29,6 +41,20 @@ module.exports = withSentryConfig(
'static/webpack/[fullhash].[runtime].hot-update.json';
return config;
},
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: '/(.*)',
headers: COOP_COEP_Headers,
},
{
source: '/_next/static/chunks/:any',
headers: COOP_COEP_Headers,
},
];
},
})
),
{ release: gitSha }