Wrangler toml - multiple [site] buckets

I’m using wrangler to deploy my statically generated site to a Workers site. I have a ‘staging’ environment and an [env.production] profile so. I can control to which domain stuff is being deployed.

This works great!

bucket = “./dist/static”
entry-point = “workers-site”

However, I’m now in the process of creating an AMP version of the same site that will need to run on a separate subdomain. This is basically a completely different (also statically generated) site. it is generated in /dist/amp and I need to deploy it to amp.mydomain.com. How can I do this? I tried adding ‘bucket’ to a new new profile ([env.amp]) but this doesn’t seem to work (it deploys the stuff from ./dist/static, not ./dist/amp).

It seems that [site] should really also have build profiles? Or [env] should support at least bucket…? How can I solve this?