29 lines
603 B
TypeScript
29 lines
603 B
TypeScript
|
|
import type { NextConfig } from 'next';
|
||
|
|
|
||
|
|
const nextConfig: NextConfig = {
|
||
|
|
output: 'export',
|
||
|
|
reactStrictMode: true,
|
||
|
|
// Turbopack configuration (Next.js 16+)
|
||
|
|
turbopack: {},
|
||
|
|
// Webpack fallback for older Next.js versions
|
||
|
|
webpack: (config) => {
|
||
|
|
// Required for Web Audio API and WASM modules
|
||
|
|
config.resolve.fallback = {
|
||
|
|
...config.resolve.fallback,
|
||
|
|
fs: false,
|
||
|
|
path: false,
|
||
|
|
crypto: false,
|
||
|
|
};
|
||
|
|
|
||
|
|
// Enable WASM
|
||
|
|
config.experiments = {
|
||
|
|
...config.experiments,
|
||
|
|
asyncWebAssembly: true,
|
||
|
|
};
|
||
|
|
|
||
|
|
return config;
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default nextConfig;
|