From f91d7b55c6d2c1ac5207e8e75c386728fd90136b Mon Sep 17 00:00:00 2001 From: Natanael Fernandes Date: Sun, 3 Dec 2023 23:35:52 -0300 Subject: [PATCH] alterando timeout do gateway --- src/gateway.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gateway.ts b/src/gateway.ts index 55749f0..d11515d 100644 --- a/src/gateway.ts +++ b/src/gateway.ts @@ -35,7 +35,7 @@ app.get('/', (req, res) => { }) servicesConfig.services.forEach(({ name, url }) => { - app.use(`/${name}`, httProxy(url, {timeout: 5000})) + app.use(`/${name}`, httProxy(url, {timeout: 10000})) }); const PORT = process.env.PORT || 4000; diff --git a/tsconfig.json b/tsconfig.json index 794c41e..59202ea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "module": "NodeNext", /* Specify what module code is generated. */ - "rootDir": "./src", /* Specify the root folder within your source files. */ + "rootDir": "./", /* Specify the root folder within your source files. */ "outDir": "./dist", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */