Home > @infiniteobjects/express-cloud-function > IFunctionServerConfig
Function configuration
Signature:
export interface IFunctionServerConfig
| Property | Modifiers | Type | Description |
|---|---|---|---|
| errorHandlers | ErrorRequestHandler[] | Error middleware to add to the request | |
| name | string | Function name | |
| post | RequestHandler[] | Middleware to add to the request after the route handlers. | |
| pre | RequestHandler[] | Middleware to add before the route handlers. A good example is loadUser |
|
| routes | RouteConfig[] | The routes for this function | |
| staticPaths | string[] | Static paths to serve (MUST BE ABSOLUTE PATHS) | |
| version | string | Function version |