Deploying stucks when service bindings in wrangler.toml

pages.dev: remix-hono-turbo.pages.dev
account: b2477739be77aa90496d6c0669820012
pages.dev: remix-hono-turbo.pages.dev
account: b2477739be77aa90496d6c0669820012
I'm trying to deploy a remix application in monorepo using turborepo, but the deployment is not completed after several tens of minutes with Deploying to Cloudflare's global network. The asset upload itself seems to be working fine. Also I can't cancel deployment even if I clicked button from dashboard. GitHub: https://github.com/sushi-chaaaan/remix-hono-turbo
GitHub
GitHub - sushi-chaaaan/remix-hono-turbo
Contribute to sushi-chaaaan/remix-hono-turbo development by creating an account on GitHub.
No description
10 Replies
Walshy
Walshy•7mo ago
Hey, Apologies for the issue, can you try again now? We found an issue causing this https://www.cloudflarestatus.com/incidents/vpvzyjt6hx6f
sushi-chan
sushi-chan•7mo ago
Thank you for your response. However, apparently the problem still persists and deployment of my remix app still stucks. Also, if I create a Next.js project in the same monorepo and try to deploy it according to next-on-pages as project nameremix-hono-turbo-web in my account, it gets stuck in the same way.
sushi-chan
sushi-chan•7mo ago
No description
Walshy
Walshy•7mo ago
Damn thanks. I've relayed to the team Do you have a wrangler.toml? If so, could you share the contents?
sushi-chan
sushi-chan•7mo ago
name = "remix-hono-turbo-frontend"
pages_build_output_dir = "./build/client"
compatibility_date = "2024-04-16"
services = [
{ binding = "BACKEND", service = "remix-hono-turbo-backend" },
]

[vars]
NODE_VERSION = "20"
name = "remix-hono-turbo-frontend"
pages_build_output_dir = "./build/client"
compatibility_date = "2024-04-16"
services = [
{ binding = "BACKEND", service = "remix-hono-turbo-backend" },
]

[vars]
NODE_VERSION = "20"
my wrangler.toml was this
sushi-chan
sushi-chan•7mo ago
I just removed service binding from this wrangler.toml and found that I can deploy successfully. However, the service binding configuration should have been supported. https://developers.cloudflare.com/pages/functions/wrangler-configuration/#service-bindings
Cloudflare Docs
Configuration · Cloudflare Pages docs
Pages Functions can be configured two ways, either via the Cloudflare dashboard or wrangler.toml, a configuration file used to customize the …
Walshy
Walshy•7mo ago
Thanks, we're digging in now 🙂
sushi-chan
sushi-chan•7mo ago
Even in a non-monorepo Pages project, I can no longer deploy if I set service binding in wrangler toml.
Walshy
Walshy•7mo ago
Ok hey @sushi-chan Apologies for the issue, we have confirmed the problem and are working on a fix now. To get yourself back into a good place you will need to update services to include environment So your new array would look like:
services = [
{ binding = "BACKEND", service = "remix-hono-turbo-backend", environment = "production" },
]
services = [
{ binding = "BACKEND", service = "remix-hono-turbo-backend", environment = "production" },
]
sushi-chan
sushi-chan•7mo ago
This worked! thank you so much!! 🧡
Want results from more Discord servers?
Add your server