-
Hi guys. I wanna try bun and migrated my app from node 20 to latest bun version but I my workers stopped working I have everything in docker and my workers seems to start successfully but every request fails from browser (proxied by nginx) and from worker container using curl. It fails like server didnt start but it does I keep my workers as monorepo and starts them using run command with filter bun --filter @minino/worker-uploader dev
# "dev": "wrangler dev --ip 0.0.0.0 --persist-to /cloudflare/data", here is logs
Vite dev server in another container using same image works fine I tried to run worker locally without docker and it cannot even start and fails with and without Does anyone have thoughts why it dont work? My config files: FROM oven/bun:1.1.33-slim
WORKDIR /app x-app-common: &app-common
restart: always
stdin_open: true
tty: true
env_file:
- .env
x-worker-common: &worker-common
<<: *app-common
image: minimo-bun
tty: false
volumes:
- ./apps/workers:/app
- ./tmp/cloudflare/data:/cloudflare/data
- workers_node_modules:/app/node_modules
- bun_cache:/root/.bun/install/cache
services:
worker-uploader:
<<: *worker-common
command: bun --filter @minino/worker-uploader dev upstream worker-uploader {
server worker-uploader:8787;
}
server {
server_name local.minino.app;
listen 80 default_server;
index off;
access_log off;
location /workers/uploader {
proxy_pass http://worker-uploader/;
}
} I dont like having both node and bun runtimes revert changes back to node for now |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Okay. I updated wrangler to latest version and now having an error
|
Beta Was this translation helpful? Give feedback.
-
Found this issue of cloudflare worker sdk repo: cloudflare/workers-sdk#4895 |
Beta Was this translation helpful? Give feedback.
Found this issue of cloudflare worker sdk repo: cloudflare/workers-sdk#4895
Related bun issue: #8867