First commit.
This commit is contained in:
23
api/server.config.js
Normal file
23
api/server.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* This file allows you to configure the Fastify Server settings
|
||||
* used by the RedwoodJS dev server.
|
||||
*
|
||||
* It also applies when running the api server with `yarn rw serve`.
|
||||
*
|
||||
* For the Fastify server options that you can set, see:
|
||||
* https://www.fastify.io/docs/latest/Reference/Server/#factory
|
||||
*
|
||||
* Examples include: logger settings, timeouts, maximum payload limits, and more.
|
||||
*
|
||||
* Note: This configuration does not apply in a serverless deploy.
|
||||
*/
|
||||
|
||||
/** @type {import('fastify').FastifyServerOptions} */
|
||||
const config = {
|
||||
requestTimeout: 15_000,
|
||||
logger: {
|
||||
level: process.env.NODE_ENV === 'development' ? 'debug' : 'warn',
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
Reference in New Issue
Block a user