chore: 生产环境移除demo plugin

pull/199/head
xiaojunnuo 2024-09-29 15:00:17 +08:00
parent 51f29d6093
commit 15f44e64f7
3 changed files with 13 additions and 9 deletions

View File

@ -41,4 +41,7 @@ export class DemoAccess implements IAccess {
demoKeySecret = ''; demoKeySecret = '';
} }
new DemoAccess(); if (process.env.NODE_ENV === 'development') {
//你的实现 要去掉这个if不然生产环境将不会显示
new DemoAccess();
}

View File

@ -1,9 +1,4 @@
import { import { AbstractDnsProvider, CreateRecordOptions, IsDnsProvider, RemoveRecordOptions } from '@certd/plugin-cert';
AbstractDnsProvider,
CreateRecordOptions,
IsDnsProvider,
RemoveRecordOptions,
} from '@certd/plugin-cert';
import { Autowire, HttpClient, ILogger } from '@certd/pipeline'; import { Autowire, HttpClient, ILogger } from '@certd/pipeline';
import { DemoAccess } from './access.js'; import { DemoAccess } from './access.js';
@ -83,4 +78,7 @@ export class DemoDnsProvider extends AbstractDnsProvider<DemoRecord> {
} }
//TODO 实例化这个provider将其自动注册到系统中 //TODO 实例化这个provider将其自动注册到系统中
new DemoDnsProvider(); if (process.env.NODE_ENV === 'development') {
//你的实现 要去掉这个if不然生产环境将不会显示
new DemoDnsProvider();
}

View File

@ -98,4 +98,7 @@ export class DemoTestPlugin extends AbstractTaskPlugin {
} }
} }
//TODO 这里实例化插件,进行注册 //TODO 这里实例化插件,进行注册
new DemoTestPlugin(); if (process.env.NODE_ENV === 'development') {
//你的实现 要去掉这个if不然生产环境将不会显示
new DemoTestPlugin();
}