Skip to content

Commit

Permalink
alterando timeout do gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandes-natanael committed Dec 4, 2023
1 parent d2f17b5 commit f91d7b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit f91d7b5

Please sign in to comment.