https://dash.cloudflare.com/oauth2/token and then 403s with a bot management challenge page, returning HTML.https://dash.cloudflare.com/oauth2/token should likely just be loosened a bitworker-configuration.d.ts as generated by wrangler types?wrangler pages dev however I got this error: better-sqlite3 won't install as stand alone, same errorexport PATH=/usr/bin:$PATHwrangler deployments list or wrangler deployments view [deployment-id] also gave you the URL to the worker. Just like it does when we use wrangler deploynpm init --from-dash converting worker.js into src/index.ts?wrangler.toml. When I run deploy --dry-run --outdir dist, the generated code shows the variable replaced. However, when I run dev, my code throws an exception ReferenceError: __IS_DEPLOYED_BUILD__ is not defined. What may be adding weirdness here is that __IS_DEPLOYED_BUILD__ is in a transitive dependency. Not sure how to view the generated code that dev is generating as it doesn't seem to support --outdir...$TMPDIR, along the lines of tmp-55872-3xWssSNdPdH6/index.js.var src_default then you'll find it pretty easily.__IS_DEPLOYED_BUILD__ either....index.js.map - but no idea on the missing __IS_DEPLOYED_BUILD__ part.if (__IS_DEPLOYED_BUILD__), although that depends if you already have sourcemaps because otherwise it probably makes debugging horrible.unstable_dev?https://dash.cloudflare.com/oauth2/tokenhttps://dash.cloudflare.com/oauth2/tokenC:\Users\evorage\Projects\Cloudflare\application\node_modules\wrangler\wrangler-dist\cli.js:30632
throw a;
^
Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4095,
code: 'EOF',
syscall: 'write'
}
Node.js v20.5.0npm i wrangler@latest
...
npm ERR! path /Users/ioa/Documents/dev/ekonavi/ekonavi-backend/node_modules/better-sqlite3
...
npm ERR! prebuild-install warn install No prebuilt binaries found (target=19.1.0 runtime=node arch=arm64 libc= platform=darwin)
...
npm ERR! gyp info using node-gyp@9.3.0
npm ERR! gyp info using node@19.1.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.3 found at "/opt/homebrew/opt/python@3.11/bin/python3.11"
npm ERR! gyp info spawn /opt/homebrew/opt/python@3.11/bin/python3.11npm ERR! libtool: error: unrecognised option: '-static'export PATH=/usr/bin:$PATHwrangler deployments listwrangler deployments view [deployment-id]npm init --from-dash[define]
__IS_DEPLOYED_BUILD__ = "true"deploy --dry-run --outdir distReferenceError: __IS_DEPLOYED_BUILD__ is not defined__IS_DEPLOYED_BUILD____IS_DEPLOYED_BUILD____IS_DEPLOYED_BUILD__--outdir$TMPDIRtmp-55872-3xWssSNdPdH6/index.jsvar src_defaultindex.js.mapif (__IS_DEPLOYED_BUILD__)unstable_dev--kv KV_STORE=d4dd19ae...