Conversation
Adds a configurable announcement banner to the web app, rendered at the top of the page above the navigation bar. The banner is fully controlled via environment variables — no code changes are needed to enable, update, or disable it. Three new env vars: PUBLIC_BANNER_TEXT — the banner message; banner is hidden when unset/empty PUBLIC_BANNER_LINK_TEXT — optional CTA button label (defaults to "Read more") PUBLIC_BANNER_LINK_URL — optional link URL; button only renders when set
🦋 Changeset detectedLatest commit: 85287f4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📦 Next.js Bundle Analysis for @blobscan/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| Page | Size (compressed) |
|---|---|
global |
286.7 KB (🟡 +1.48 KB) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Checklist
Description
Adds a configurable announcement banner to the web app, rendered at the top of the page above the navigation bar. The banner is fully controlled via environment variables — no code changes are needed to enable, update, or disable it.
Three new env vars:
Motivation and Context (Optional)
We need a way to announce new blog posts (and other announcements) to users visiting the explorer. This implementation makes the banner a permanent, reusable component based on previous banner that can be toggled on/off purely through environment variables.
Related Issue (Optional)
Screenshots (if appropriate):