workers-sdk: New environment logic - publish to custom domain fails

Version:

0.0.24

Config

main = "src/index.js"
legacy_env = false
compatibility_date = "2022-03-08"
name = "image-cropper"

[env.dev]
route = "image-cropper-dev.SECRETDOMAINPLACEHOLDER/*"

Command

CLOUDFLARE_ACCOUNT_ID=*** CLOUDFLARE_API_TOKEN=*** wrangler publish --env dev throws error. Environment is created but no route trigger.

Error

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Hey, it works now. Thank you guys !

Oh, it seems token was automatically passed by from .env file, thats why even with oauth wasn’t working.

Ok this helps, because it means we can probably fix it internally. I’ll update this issue when I have news. Thank you for reporting!