Unexpected Application Error!

Headers is not defined

ReferenceError: Headers is not defined
    at redirect (/app/node_modules/@remix-run/router/dist/router.cjs.js:1511:17)
    at loader (/app/ssr/server.js:1:941075)
    at actualHandler (/app/node_modules/@remix-run/router/dist/router.cjs.js:4711:14)
    at /app/node_modules/@remix-run/router/dist/router.cjs.js:4719:89
    at runHandler (/app/node_modules/@remix-run/router/dist/router.cjs.js:4730:7)
    at callLoaderOrAction (/app/node_modules/@remix-run/router/dist/router.cjs.js:4785:22)
    at Object.resolve (/app/node_modules/@remix-run/router/dist/router.cjs.js:4662:27)
    at /app/node_modules/@remix-run/router/dist/router.cjs.js:4644:60
    at Array.map (<anonymous>)
    at defaultDataStrategy (/app/node_modules/@remix-run/router/dist/router.cjs.js:4644:49)