Skip to content

Commit

Permalink
Create next.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nodoubtz authored Mar 7, 2025
1 parent 7c88099 commit df92d10
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Headers for cross-origin isolation mode, required when you're using @motherduck/wasm-client
/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin',
},
{
key: 'Cross-Origin-Embedder-Policy',
value: 'require-corp',
},
],
},
]
},
}

export default nextConfig;

0 comments on commit df92d10

Please sign in to comment.