mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-21 19:41:33 +00:00
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
section
|
|
h3(id='app-settings') settings
|
|
|
|
p.
|
|
The following settings are provided to alter how Express will behave:
|
|
|
|
ul
|
|
li
|
|
code env
|
|
| Environment mode, defaults to <code>process.env.NODE_ENV</code> or "development"
|
|
li
|
|
code trust proxy
|
|
| Enables reverse proxy support, disabled by default
|
|
li
|
|
code jsonp callback
|
|
| Enables jsonp callback support, enabled by default
|
|
li
|
|
code jsonp callback name
|
|
| Changes the default callback name of <code>?callback=</code>
|
|
li
|
|
code json replacer
|
|
| JSON replacer callback, null by default
|
|
li
|
|
code json spaces
|
|
| JSON response spaces for formatting, defaults to <code>2</code> in development, <code>0</code> in production
|
|
li
|
|
code case sensitive routing
|
|
| Enable case sensitivity, disabled by default, treating "/Foo" and "/foo" as the same
|
|
li
|
|
code strict routing
|
|
| Enable strict routing, by default "/foo" and "/foo/" are treated the same by the router
|
|
li
|
|
code view cache
|
|
| Enables view template compilation caching, enabled in production by default
|
|
li
|
|
code view engine
|
|
| The default engine extension to use when omitted
|
|
li
|
|
code views
|
|
| The view directory path
|
|
|