add infiscal
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
Lee
2023-11-13 05:42:06 +00:00
parent 9c2bf54426
commit 75afdfed7d
8 changed files with 162 additions and 96 deletions

View File

@ -3,7 +3,7 @@ import { createClient } from "redis";
let redisClient = await connectRedis();
async function connectRedis(): Promise<any> {
console.log("Connecting to redis");
// console.log("Connecting to redis");
const client = createClient({
url: process.env.REDIS_URL,
});

8
src/secrets.js Normal file
View File

@ -0,0 +1,8 @@
const InfisicalClient = require("infisical-node");
const infisicalClient = new InfisicalClient({
token: process.env.INFISICAL_TOKEN,
siteURL: "https://secrets.fascinated.cc",
});
module.exports = infisicalClient;