mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 11:26:33 +00:00
Update InfisicalClient initialization
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
import infisical from 'infisical-node';
|
import InfisicalClient from 'infisical-node';
|
||||||
|
|
||||||
|
const infisical = new InfisicalClient({
|
||||||
|
token: process.env.INFISICAL_TOKEN!
|
||||||
|
});
|
||||||
|
|
||||||
export const getPort = async () => await infisical.get('PORT')! || 4000;
|
export const getPort = async () => await infisical.get('PORT')! || 4000;
|
||||||
export const getInviteOnlySignup = async () => await infisical.get('INVITE_ONLY_SIGNUP')! == undefined ? false : await infisical.get('INVITE_ONLY_SIGNUP');
|
export const getInviteOnlySignup = async () => await infisical.get('INVITE_ONLY_SIGNUP')! == undefined ? false : await infisical.get('INVITE_ONLY_SIGNUP');
|
||||||
|
|||||||
@@ -79,10 +79,6 @@ import {
|
|||||||
} from './config';
|
} from './config';
|
||||||
|
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
infisical.connect({
|
|
||||||
token: process.env.INFISICAL_TOKEN!
|
|
||||||
});
|
|
||||||
|
|
||||||
TelemetryService.logTelemetryMessage();
|
TelemetryService.logTelemetryMessage();
|
||||||
setTransporter(await initSmtp());
|
setTransporter(await initSmtp());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user