BootstrapWorker

bootstrapWorker

bootstrapWorker

Package: @vendure/core File: bootstrap.ts

Bootstraps the Vendure worker. Read more about the Vendure Worker or see the worker-specific options defined in WorkerOptions.

Example

import { bootstrapWorker } from '@vendure/core';
import { config } from './vendure-config';

bootstrapWorker(config).catch(err => {
    console.log(err);
});

Signature

function bootstrapWorker(userConfig: Partial<VendureConfig>): Promise<INestMicroservice>

Parameters

userConfig

parameter
type:
Partial<VendureConfig>