Skip to content

Commit d3a41c8

Browse files
committed
chore: 🤖 Allow for empty strings for signer configuration
In polymesh-local docker-compose makes it difficult to pass a non empty string for VAULT_URL and VAULT_TOKEN when they are not set.
1 parent fbd3af7 commit d3a41c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/app.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ import { SigningModule } from '~/signing/signing.module';
2626
POLYMESH_NODE_URL: Joi.required(),
2727
POLYMESH_MIDDLEWARE_URL: Joi.string(),
2828
POLYMESH_MIDDLEWARE_API_KEY: Joi.string(),
29-
LOCAL_SIGNERS: Joi.string(),
30-
LOCAL_MNEMONICS: Joi.string(),
31-
VAULT_TOKEN: Joi.string(),
32-
VAULT_URL: Joi.string(),
29+
LOCAL_SIGNERS: Joi.string().allow(''),
30+
LOCAL_MNEMONICS: Joi.string().allow(''),
31+
VAULT_TOKEN: Joi.string().allow(''),
32+
VAULT_URL: Joi.string().allow(''),
3333
})
3434
.and('POLYMESH_MIDDLEWARE_URL', 'POLYMESH_MIDDLEWARE_API_KEY')
3535
.and('LOCAL_SIGNERS', 'LOCAL_MNEMONICS')
36-
.nand('LOCAL_SIGNERS', 'VAULT_TOKEN'),
36+
.and('VAULT_TOKEN', 'VAULT_URL'),
3737
}),
3838
AssetsModule,
3939
PolymeshModule,

0 commit comments

Comments
 (0)