Skip to content

Bootstrap

Workload to run a script to bootstrap an application.

Description

With this workload, you can define an npm script to run when rolling out a fresh application.

A Bootstrap workload is initialized with an ID and a script name.

ts
import { Bootstrap } from "@monolayer/sdk";

const bootstrap = new Bootstrap("bootstrap", {
  script: "db:create", // Script name in package.json
});

export default bootstrap;