This module provides a database-backed workspace provider for the scaffolder backend.
Warning: This module is intended for development use only. In production, use an external storage provider like GCS (@backstage/plugin-scaffolder-backend-module-gcp).
yarn add @backstage/plugin-scaffolder-backend-module-workspace-database
Add to your backend:
// packages/backend/src/index.ts
backend.add(
import('@backstage/plugin-scaffolder-backend-module-workspace-database'),
);
Configure in your app-config:
scaffolder:
taskRecovery:
enabled: true
workspaceProvider: database
The module does not register the provider in production by default. Although it is not recommended, you can explicitly enable it with the following configuration:
scaffolder:
taskRecovery:
database:
dangerouslyEnableInProduction: true
dangerouslyEnableInProduction to true.
Database workspace provider module for the scaffolder backend.