Files
anonklub/ui/next.config.mjs
Iskander 924c9d0588 feat(ui): prove with halo2 (#475)
* 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
2024-08-30 17:01:36 +02:00

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)