Skip to content

Commit

Permalink
fix: add CA_CERT for digitalocean
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed Aug 26, 2024
1 parent ab1b039 commit 4334dd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const dir = __dirname.endsWith('dist/src') ? '../' : '';
const schemaFile = path.join(__dirname, `${dir}../src/schema.gql`);
const schema = fs.readFileSync(schemaFile, 'utf8');

if (process.env.CA_CERT) {
process.env.CA_CERT = process.env.CA_CERT.replace(/\\n/g, '\n');
}

const indexer = new NoopIndexer();
const checkpoint = new Checkpoint(config, indexer, schema, {
logLevel: LogLevel.Info,
Expand Down

0 comments on commit 4334dd7

Please sign in to comment.