I'm Building a worker application with Hono how can I change the PORT

i have created an app using npm create hono@latest my-app and selected cloudflare workers and the wrangler CLI is good but i have two desires 1. I want to run application on my desired ports 2. rather using wrangler can i run locally as in traditional hono application we use to run using this command "dev": "tsx watch src/index.ts"
2 Replies
Md.Sadiq
Md.SadiqOP4w ago
And doubt when iam using serve to change port iam getting this error when i use wrangler ⎔ Starting local server... [wrangler:inf] Ready on http://localhost:8787 ✘ [ERROR] Failed to find Response internal state key ✘ [ERROR] service core:user:vid-stream-backend: Uncaught Error: [unenv] http.createServer is not implemented yet! at null.<anonymous> (index.js:78:10) in createNotImplementedError at null.<anonymous> (index.js:83:11) in fn at null.<anonymous> (index.js:5217:18) in createAdaptorServer at null.<anonymous> (index.js:5221:18) in serve at null.<anonymous> (index.js:5238:1) ✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.
gwapes
gwapes4w ago
Workers are serverless, request goes in and a response comes out. You can’t change the port since you can’t run a server on workers
Want results from more Discord servers?
Add your server