Type Alias JimpexStaticsOptions

JimpexStaticsOptions: {
    enabled: boolean;
    folder?: string;
    onHome: boolean;
    route: string;
}

The options for the middleware that serves static files.

Type declaration

  • enabled: boolean

    Whether or not to enable the middleware.

    true
    
  • Optionalfolder?: string

    By default, the folder will be the same as the route, but you can use this option to define a relative path that won't affect the route.

    ''
    
  • onHome: boolean

    If true, the path to the statics folder will be relative to the project root directory, otherwise, it will be relative to the directory where the app executable file is located.

    false
    
  • route: string

    The name of both the route and the folder, relative to whatever you defined with the onHome option.

    'statics'