b2319ffe45
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
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:
-
First we need to add the
@backstage/plugin-devtools-backendpackage to your backend:# From the Backstage root directory yarn --cwd packages/backend add @backstage/plugin-devtools-backend -
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')); -
Now run
yarn start-backendfrom the repo root -
Finally open
http://localhost:7007/api/devtools/healthin a browser and it should return{"status":"ok"}