Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ const nextConfig: NextConfig = {
config.resolve.fallback = { fs: false };
return config;
},
// Crucial security headers required to run FFmpeg WebAssembly locally
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Cross-Origin-Opener-Policy",
value: "same-origin",
},
{
key: "Cross-Origin-Embedder-Policy",
value: "require-corp",
},
],
},
];
},
};

export default nextConfig;
export default nextConfig;
Loading
Loading