Closed shane-js closed 4 months ago
Hey 👋
This should be addressed in https://github.com/kysely-org/kysely-ctl/releases/tag/v0.8.9.
c12
allows for custom environment names, not part of their predefined environment names list. You can use those in your config via:
{
// ...
$env: {
staging: {
// ...
}
}
// ...
}
Error: "Type 'string' is not assignable to type 'undefined'.ts(2322)" seen when doing:
Additionally it also only lets you use the environment name strings found in c12's C12InputConfig interface but kysely-ctl's src/arguments/environment.mts has valueHint of 'prod | dev | test | ...' but you actually can't use those abbreviations for production and development without other typescript compilation error.
Per @igalklebanov review on discord issue is appropriate to raise on this.