Refused to execute script because its MIME type ('text/html') is not executable
Hey,
I deployed my next.js site with clerkdev authentication on cloudflare. I get this error in console only when user is logged in.
Failed to load resource: the server responded with a status of 404 ()
Refused to execute script from 'https://[mydomain]/_next/static/chunks/webpack-0342d472777da1c1.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
So, once the user is log in, instead of sign in button, I show sign out button, but the signout button is not visible to user and I get this error.
Locally, the code is working perfectly.
Strangely, I also have other site deployed on cloudflare with similar code & I get no error there.
I deployed my next.js site with clerkdev authentication on cloudflare. I get this error in console only when user is logged in.
Failed to load resource: the server responded with a status of 404 ()
Refused to execute script from 'https://[mydomain]/_next/static/chunks/webpack-0342d472777da1c1.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
So, once the user is log in, instead of sign in button, I show sign out button, but the signout button is not visible to user and I get this error.
Locally, the code is working perfectly.
Strangely, I also have other site deployed on cloudflare with similar code & I get no error there.