backstage-plugin-announcements
backstage-plugin-announcements copied to clipboard
How to have different announcement sources within the same portal?
Hi there, is it possible to have two distinct frontend announcement areas within the same portal?
- I tried to create
announcements.ts
andannouncements-product.ts
inbackend/src/plugins
and - Added distinct paths to App.tsx as:
<Route path="/announcements" element={<AnnouncementsPage />} />
<Route path="/product/announcements" element={<AnnouncementsPage />} />
- And also added those two distinct routes to backend/src/index.ts
apiRouter.use(...
I didn't check if the full link works, regardless, since AnnouncementsCard
takes no context input, I suspect it will look for only one backend source, and therefore making impossible to have two different announcement card areas, pulling from different databases, within the same page.