Skip to content

Commit 9c54e3f

Browse files
committed
Configured vercel for the project. Normally vercel doesn't have to be configured because it does it automatically but today was an exception because we use FFmpeg on our project. FFmpeg uses the SharedArrayBuffer, which forces us to use certain headers. These headers have to be configured into vercel. Otherwise the application won't work correctly.
1 parent 2140268 commit 9c54e3f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

vercel.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"headers": [
3+
{
4+
"source": "/(.*)",
5+
"headers": [
6+
{ "key": "Cross-Origin-Opener-Policy", "value": "same-origin" },
7+
{ "key": "Cross-Origin-Embedder-Policy", "value": "require-corp" }
8+
]
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)