Firebase App Check returned error status 500 in production (Web App)

I add Firebase App Check with reCAPTCHA Enterprise in my vue3 project, and work well on mode devel. But when build on production, appcheck not working and return HTTP status: 500.

my appcheck config:

if (location.hostname === "") {
const appcheck = initializeAppCheck(app, {
  provider: new ReCaptchaEnterpriseProvider(
  isTokenAutoRefreshEnabled: true, // Set to true to allow auto-refresh.

error example :
enter image description here