Skip to content

Commit db979d4

Browse files
mgiancola9coopernetes
authored andcommitted
fix: readfilesync directory issue with cypres - remove unused import
1 parent 91cea46 commit db979d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/proxy/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import bodyParser from 'body-parser';
33
import http from 'http';
44
import https from 'https';
55
import fs from 'fs';
6-
import path from 'path';
76
import { router } from './routes';
87
import {
98
getAuthorisedList,
@@ -24,8 +23,8 @@ const options = {
2423
inflate: true,
2524
limit: '100000kb',
2625
type: '*/*',
27-
key: getTLSEnabled() ? fs.readFileSync(path.join(__dirname, getTLSKeyPemPath())) : undefined,
28-
cert: getTLSEnabled() ? fs.readFileSync(path.join(__dirname, getTLSCertPemPath())) : undefined,
26+
key: getTLSEnabled() ? fs.readFileSync(getTLSKeyPemPath()) : undefined,
27+
cert: getTLSEnabled() ? fs.readFileSync(getTLSCertPemPath()) : undefined,
2928
};
3029

3130
const proxyPreparations = async () => {

0 commit comments

Comments
 (0)