mirror of
https://github.com/MPCStats/zk-stats-demo.git
synced 2026-01-06 20:33:56 -05:00
29 lines
715 B
JavaScript
29 lines
715 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
|
|
|
|
// Ref: https://github.com/zkonduit/ezkljs-engine/tree/main?tab=readme-ov-file#cross-origin-isolation
|
|
const nextConfig = {
|
|
// webpack: (config) => {
|
|
// config.resolve.alias['@ezkljs/verify'] = '@ezkljs/verify/dist/esm/index.js';
|
|
// return config;
|
|
// },
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/(.*)',
|
|
headers: [
|
|
{
|
|
key: 'Cross-Origin-Embedder-Policy',
|
|
value: 'require-corp',
|
|
},
|
|
{
|
|
key: 'Cross-Origin-Opener-Policy',
|
|
value: 'same-origin',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig |