Skip to content

No task has the variant

error: no selected task has a variant named prod; the variants are dev, staging
hint: Choose one of these, or add the variant under [tasks.<name>.variants] in axle.toml.

axle run was given --variant, but none of the tasks it would run has a variant with that name under [tasks.<script>.variants] in an axle.toml.

Use one of the variants the message lists, or add the one you meant:

[tasks.build.variants.prod]
setEnv = { NODE_ENV = "production" }

Variants explains how they apply.