npx wrangler pages dev dist would cause it to run identically to how it is on Cloudflare, but it doesn't seem to be the case as it works locally. Have removed all instances of useRuntimeConfig (but made no difference) but a bit stumped as to what to try next as, without any logging, it feels like a needle in a haystack!