Skip to main content

Interface: JovaPartialRCOptions

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:181

Properties

basePath?

optional basePath: string

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:191

Name

basePath

Description

An optional base path for all of your routes to begin at.


cors?

optional cors: CorsOptions

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:216

Name

cors

Description

Enable cors and set up certain values for the cors middleware.


customHeaders?

optional customHeaders: JovaHeaderSetting[]

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:211

Name

customHeaders

Description

Custom headers to be applied to outgoing responses, this is a middleware of optional use but the headers put in here are read-only at runtime until the request is received by a request handler.


customOptions?

optional customOptions: JovaCustomOption[]

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:206

Name

customOptions

Description

Custom options from express to be set upon the server starting, similar to settings but this sets any value unlike settings which only allows settings from the JovaSettingsOptions enum.


paths?

optional paths: JovaPathSettings

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:186

Name

paths

Description

Deploy example middlewares and routes when running the Jova.js Server.


port?

optional port: string | number

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:196

Name

port

Description

The port for the Jova Server to run on.


settings?

optional settings: JovaSettings

Defined in: src/types/jova/config/interfaces/RCOptions/JsonYamlPartials.ts:201

Name

settings

Description

Custom settings from express to be enabled or disabled upon the server starting.