Files
backstage/plugins/devtools-backend
Patrik Oldsberg b2319ffe45 errors: add toError utility and migrate assertError usages
Add a `toError` utility function to `@backstage/errors` that converts
unknown values to `ErrorLike` objects. If the value is already error-like
it is returned as-is. Strings are used directly as the error message, and
other values are stringified with a fallback to JSON.stringify to avoid
unhelpful `[object Object]` messages.

Non-error causes passed to `CustomErrorBase` are now converted and stored
using `toError` rather than discarded. Existing `assertError` call sites
across the codebase are migrated to `toError`.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
2026-04-03 10:16:23 +02:00
..
2026-03-31 15:30:51 +00:00
2026-03-31 15:30:51 +00:00

DevTools Backend

Welcome to the DevTools backend plugin! This plugin provides data for the DevTools frontend features.

Setup

Here's how to get the DevTools Backend up and running in the new backend system:

  1. First we need to add the @backstage/plugin-devtools-backend package to your backend:

    # From the Backstage root directory
    yarn --cwd packages/backend add @backstage/plugin-devtools-backend
    
  2. Then add the plugin to your backend index file:

    // In packages/backend/src/index.ts
    const backend = createBackend();
    // ... other feature additions
    backend.add(import('@backstage/plugin-devtools-backend'));
    
  3. Now run yarn start-backend from the repo root

  4. Finally open http://localhost:7007/api/devtools/health in a browser and it should return {"status":"ok"}