Skip to content

Commit 217f620

Browse files
committed
allowing crop to fix firbase auth in deployment
1 parent 24d5f8e commit 217f620

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

next.config.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
5-
6-
images:{
7-
unoptimized:true,
8-
}
4+
images: {
5+
unoptimized: true,
6+
},
7+
async headers() {
8+
return [
9+
{
10+
source: "/(.*)", // Apply to all routes
11+
headers: [
12+
{ key: "Cross-Origin-Opener-Policy", value: "same-origin-allow-popups" },
13+
{ key: "Cross-Origin-Embedder-Policy", value: "require-corp" }, // Optional, for better security
14+
],
15+
},
16+
];
17+
},
918
};
1019

1120
export default nextConfig;

0 commit comments

Comments
 (0)