You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how to resolve this. I have set Cross-Origin-Embedder-Policy to require-corp for all paths in next.config.js (unless source: "/(.*)" doesn't match all paths? I tried source: "/" too and got the same issue).
I have also deployed a regular React version which doesn't use Next.js (https://main.d18xlq54508lji.amplifyapp.com) to check whether the issue is Next.js related. I get the same issue so the issue is not related to Next.js but rather caused by Amplify and/or CloudFront.
The text was updated successfully, but these errors were encountered:
Before opening, please confirm:
App Id
d2hzcewjwit905
AWS Region
eu-west-2
Amplify Hosting feature
CDK, Custom headers
Frontend framework
Next.js
Next.js version
13.5.6
Next.js router
App Router
Describe the bug
My Next.js 13 app (https://main.d2hzcewjwit905.amplifyapp.com/) which uses ffmpeg.wasm tries to make a request to https://main.d2hzcewjwit905.amplifyapp.com/_next/static/chunks/795.ceab62a43c56068c.js when trying to convert a file. You can see this in the network tab. This gives the following error:
I'm not sure how to resolve this. I have set
Cross-Origin-Embedder-Policy
torequire-corp
for all paths innext.config.js
(unlesssource: "/(.*)"
doesn't match all paths? I triedsource: "/"
too and got the same issue).The source code for my project which includes my
next.config.js
file can be found here: https://github.com/CrypticSignal/av-converter-amplifyExpected behavior
I was expecting no COEP related issues as I have set the following in
next.config.js
:Reproduction steps
Build Settings
Additional information
Platform: Web compute
The vercel deployed version works: https://av-converter-amplify.vercel.app
Therefore, Amplify and/or CloudFront is definitely the cause of the issue with the Amplify hosted version: https://main.d2hzcewjwit905.amplifyapp.com
I have also deployed a regular React version which doesn't use Next.js (https://main.d18xlq54508lji.amplifyapp.com) to check whether the issue is Next.js related. I get the same issue so the issue is not related to Next.js but rather caused by Amplify and/or CloudFront.
The text was updated successfully, but these errors were encountered: