question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug Report

Current behavior

set is not being exposed in order to add custom config to express such as trust proxy

Input Code

const your = (code) => here;

Expected behavior

Being able to set express config such as trust proxy, views etc

Possible Solution

Environment


Nest version: X.Y.Z

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
kamilmysliwieccommented, Jun 7, 2019

There is a set method, but you have to use NestExpressApplication interface. See here https://docs.nestjs.com/first-steps#platform

const app = await NestFactory.create<NestExpressApplication>(ApplicationModule);
app.set(...)
1reaction
kamilmysliwieccommented, May 28, 2019

See this https://docs.nestjs.com/first-steps#platform

const app = await NestFactory.create<NestExpressApplication>(ApplicationModule);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Women's Meet Your Match - Matching Sets - Express
Shop women's matching sets at Express. These two piece matching sets are so cute, comfortable and easy to style, they are great for...
Read more >
API Reference - Express 4.x
Sets the Boolean setting name to true , where name is one of the properties from the app settings table. Calling app.set('foo', true)...
Read more >
Express.js | app.set() Function - GeeksforGeeks
The app.set() function is used to assigns the setting name to value. You may store any value that you want, but certain names...
Read more >
Express Set Fixtures
Express Set Fixtures is a Salt Lake City, UT & Orange, CA based General Contractor that has the ability and determination to provide...
Read more >
Express.js – app.set() Method - Tutorialspoint
Express.js – app.set() Method - The app.set() function assigns or sets a setting name to value. This can store any type of value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found