mirror of
https://github.com/anonklub/anonklub.git
synced 2026-05-03 03:00:04 -04:00
* feat: halo2 eth membership wasm web worker integration with ui * fix: resolve conflicts * fix: remove circular dependency detector * feat: using published halo2 pkgs * fix: resolve conflicts * fix: requested changes * fix: remove useless try/catch * chore: add comment in config
44 lines
935 B
JavaScript
44 lines
935 B
JavaScript
import million from 'million/compiler'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
reactStrictMode: true,
|
|
// Configs below are meant to run WASM code in NEXTJS app
|
|
webpack: (config, options) => {
|
|
if (!options.isServer) {
|
|
config.resolve.fallback.fs = false
|
|
config.resolve.fallback.readline = false
|
|
}
|
|
config.experiments = { asyncWebAssembly: true, syncWebAssembly: true, layers: true }
|
|
|
|
return config
|
|
},
|
|
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/(.*)',
|
|
headers: [
|
|
{
|
|
key: 'Cross-Origin-Opener-Policy',
|
|
value: 'same-origin',
|
|
},
|
|
{
|
|
key: 'Cross-Origin-Embedder-Policy',
|
|
value: 'require-corp',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
const millionConfig = {
|
|
auto: true,
|
|
}
|
|
|
|
export default million.next(nextConfig, millionConfig)
|