Is it possible to mimic worker routes in localhost with wrangler? ```toml # wrangler.toml # ... rou
Is it possible to mimic worker routes in localhost with wrangler?
# wrangler.toml
# ...
routes = [
{ pattern = "example.test/api*", zone_name = "example.test" },
{ pattern = "localhost:4321/api*", zone_name = "localhost" },
]wrangler dev --remote the preview_database_id is used. Perfect! However, when running wrangler dev the preview_database_id is used. wrangler dev the database_id is used.Error: The process '/usr/local/bin/npx' failed with exit code 1. Despite that, on the CF side, it seems to show that the deployments were successful - it shows that the active deployment was made "a few seconds ago". Any thoughts?CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID environment variables
wrangler 3.58.0
-------------------
X [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g.wrangler deploy path/to/script) or theconfig field.main
wrangler deploy "src/index.js"doesn't work, keeps saying I am missing my entry-point.
wrangler.toml?#:schema node_modules/wrangler/config-schema.json
name = "secretname"
main = "src/index.js"
compatibility_date = "2024-05-29"
[[durable_objects.bindings]]
name = "roomObject"
class_name = "RoomObject"
#[[migrations]]
#tag = "v2"
#renamed_classes = [{from = "MyDurableObject", to = "RoomObject" }] # Array of rename directives
#deleted_classes = ["MyDurableObject"] # Array of deleted class names
[[kv_namespaces]]
binding = "name"
id = "12345"
wrangler deploy "src/index.js"I get:
The entry-point file at "src\index.js" was not found.So it seems like it somehow can't see my files? Even though my project structure hasn't changed
cd srcGives:
Set-Location: Cannot find path 'C:\Data\WranglerProjects\workerProject\src' because it does not exist.

wrangler dev--show-interactive-dev-session=false'sh: wrangler: command not found' when running npx wrangler. I'm on the correct Node version for my project, so not sure what is upwrangler.toml and env.vars which is picked and which is overridden?main fieldroute in its wrangler.toml file. So kind of a two part question...am I even configuring the environments in the correct way and if so, how do I define the environments?
wrangler devwrangler devwrangler devError: The process '/usr/local/bin/npx' failed with exit code 1CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDwrangler deploy path/to/script--show-interactive-dev-session=false'sh: wrangler: command not found'npx wranglerenv.vars name = "uvuli"
pages_build_output_dir = "./dist"
route = "https://uvuli-esketit.pages.dev/*"
vars = { ENVIRONMENT = "dev" }
kv_namespaces = [
{ binding = "EMAIL_LIST", id = "a16974f824054fb7b2457f7d13c5bfa5" }
]
[env.production]
vars = { ENVIRONMENT = "production" }
routes = [
"uvuli.app/*",
]
kv_namespaces = [
{ binding = "EMAIL_LIST", id = "583b076b601d4dc49e13d8ddf47a574e" }
] route pnpm install --force @img/sharp-darwin-x64d1_databases = [
{ binding = "DB", database_name = "mydb", database_id = "id1", preview_database_id = "id2" },
]d1_databases = [
{ binding = "DB", database_name = "mydb", database_id = "id1" },
]