Files
zk-stats-demo/next.config.js
2023-12-18 19:51:04 +08:00

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