interface Options {
    cwd?: string;
    isAfter?: boolean;
    mockAssetsDir?: string;
    mockRouterOptions?: Config<V1> | Config<V2>;
    mockRoutes?: RouteConfig | RouteConfig[];
    mockRoutesDir?: string;
}

Properties

cwd?: string

The directory to serve files from.

Default

process.cwd()

isAfter?: boolean

If true, these mock routes is matched after internal middlewares are installed.

Default

false

mockAssetsDir?: string

Specify the directory to define mock assets.

mockRouterOptions?: Config<V1> | Config<V2>

Initial options of find-my-way. see more at https://github.com/delvedor/find-my-way#findmywayoptions

mockRoutes?: RouteConfig | RouteConfig[]

Initial list of mock routes that should be added to the dev server.

mockRoutesDir?: string

Specify the directory to define mock routes that should be added to the dev server.

Generated using TypeDoc