const gallery = binding<KVNamespace>('GALLERY');next-on-pages project -- or should I create a separate worker for that?

yarn run build to build the Next.js app.build is changing if yarn run build is supposed to go through turbo. In either case, it's out of our control since this is something that is run in the Vercel CLI instead.wasm-image-optimization ,/edge but in the docs it shows a import { optimizeImage } from 'wasm-image-optimization'; for cloudflare, which is curious to me since my understanding was all cloudflare workers are mandatory edge?wasm-image-optimization/next if you are using it in next.js project and wasm-image-optimization for workersstaging.mydomain.com)@cloudflare/next-on-pages when building the application, which builds a your Next.js app in a format that can be deployed as a full-stack app on Cloudflare Pages. There should be not be a separate worker from your Pages project if you're using Next.js API routes.const gallery = binding<KVNamespace>('GALLERY');const response = await fetch("https://oauth.battle.net/token", {
body: "grant_type=client_credentials",
headers: {
Authorization: `Basic ${btoa(`${CLIENT_ID}:${CLIENT_SECRET}`)}`,
"Content-Type": "application/x-www-form-urlencoded"
},
method: "POST",
next: { revalidate: TOKEN_CACHE_TIME },
}){
"cache-control": "no-store",
"cf-as-number": "26253",
"cf-cache-status": "DYNAMIC",
"cf-ray": "83c31de96239538d-DEN",
"connection": "keep-alive",
"content-type": "application/json;charset=UTF-8",
"date": "Wed, 27 Dec 2023 16:59:55 GMT",
"pragma": "no-cache",
"server": "cloudflare",
"transfer-encoding": "chunked",
"vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers"
}