Installing the DevPod Frontend Plugin#
This guide will help you install and set up the DevPod frontend plugin in your Backstage instance.
Prerequisites#
Before installing the plugin, ensure you have:
- A working Backstage instance
- DevPod installed on your development machine(s)
- Access to modify your Backstage frontend configuration
Installation Steps#
1. Add the Package#
Install the plugin package using your package manager:
2. Import Components#
Add the necessary imports to your Entity Page file (typically packages/app/src/components/catalog/EntityPage.tsx
):
3. Add to Entity Page#
Add the DevPod component to your overview content:
const overviewContent = (
<Grid container spacing={3} alignItems="stretch">
{/* ... other grid items ... */}
<EntitySwitch>
<EntitySwitch.Case if={isDevpodAvailable}>
<Grid item md={6}>
<DevpodComponent />
</Grid>
</EntitySwitch.Case>
</EntitySwitch>
{/* ... other grid items ... */}
</Grid>
);
Verification#
After installation, verify that:
- The plugin appears in your package.json dependencies
- The DevPod button appears on component overview pages
- The IDE selection functionality works correctly
- The CLI command display is accurate
Troubleshooting#
Common issues and solutions:
-
Missing DevPod Button
- Ensure the component is properly imported
- Check if the entity meets the availability conditions
- Verify the grid layout configuration
-
IDE Selection Issues
- Confirm DevPod installation on your machine
- Check the supported IDE list
- Verify your default IDE configuration
For configuration options and customization, proceed to the Configuration Guide.