mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-09-03 04:18:18 +00:00
txt: enables TXT records for all records
This commit is contained in:
@@ -4,7 +4,7 @@ const { domainService: dc } = require('../utils/domain-service');
|
||||
const { getDomains: gd } = require('../utils/get-domain');
|
||||
|
||||
// Allow TXT records while publishing (for pcl validation)
|
||||
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES.concat(['TXT'])));
|
||||
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES));
|
||||
|
||||
const toHostList = R.chain(data => {
|
||||
const rs = getRecords(data.record);
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ const DOMAINS_PATH = require('path').resolve('domains');
|
||||
module.exports = {
|
||||
ENV,
|
||||
IS_TEST,
|
||||
VALID_RECORD_TYPES: ['CNAME', 'A', 'URL', 'MX'],
|
||||
VALID_RECORD_TYPES: ['CNAME', 'A', 'URL', 'MX', 'TXT'],
|
||||
DOMAIN_DOMAIN: DOMAIN_DOMAIN || 'booboo.xyz',
|
||||
DOMAIN_USER: IS_TEST ? 'testuser' : DOMAIN_USER,
|
||||
DOMAIN_API_KEY: IS_TEST ? 'testkey' : DOMAIN_API_KEY,
|
||||
|
||||
Reference in New Issue
Block a user