14 lines
291 B
TypeScript
14 lines
291 B
TypeScript
import { randomUUID } from 'crypto';
|
|
|
|
export const DAKAO_OPTIONS = Symbol('DAKAO_OPTIONS');
|
|
|
|
export interface DakaoOptions {
|
|
instanceId: string;
|
|
}
|
|
|
|
export function createDefaultDakaoOptions(): DakaoOptions {
|
|
return {
|
|
instanceId: process.env.DAKAO_INSTANCE_ID || randomUUID(),
|
|
};
|
|
}
|