perf: 支持公共cname服务

This commit is contained in:
xiaojunnuo
2024-11-08 01:31:20 +08:00
parent fdc6eef921
commit 3c919ee5d1
9 changed files with 90 additions and 34 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
export function isDev() {
return process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'local';
const nodeEnv = process.env.NODE_ENV || '';
return nodeEnv === 'development' || nodeEnv.indexOf('local') >= 0;
}
+4 -2
View File
@@ -3,9 +3,10 @@ import { IAccess } from "../access";
export type CnameProvider = {
id: any;
domain: string;
dnsProviderType: string;
title?: string;
dnsProviderType?: string;
access?: IAccess;
accessId: any;
accessId?: any;
};
export type CnameRecord = {
@@ -15,6 +16,7 @@ export type CnameRecord = {
recordValue: string;
cnameProvider: CnameProvider;
status: string;
commonDnsProvider?: any;
};
export type ICnameProxyService = {
getByDomain: (domain: string) => Promise<CnameRecord>;