22 lines
482 B
TypeScript
22 lines
482 B
TypeScript
// next.config.ts
|
|
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
turbopack: {
|
|
// Turbopack handles WASM and workers natively — no extra rules needed
|
|
},
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/(.*)",
|
|
headers: [
|
|
{ key: "Cross-Origin-Opener-Policy", value: "same-origin" },
|
|
{ key: "Cross-Origin-Embedder-Policy", value: "require-corp" },
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|