Restore the promo top banner on docs and preview (main) (#3137)

This commit is contained in:
Paweł Kuna authored and GitHub committed 2026-09-23 00:01:55 +02:00
1 parent 084d2021d3
commit c482b48cc0
3 files changed
+15

No files matched your search

+5
View File
@@ -32,6 +32,9 @@ const themeAttributes = themeDataAttributes(themeSettings)
const environment = process.env.NODE_ENV || 'production'
const isDevelopment = environment === 'development'
const min = isDevelopment ? '' : '.min'
// The promo top banner loads on Vercel deploys (production and branch previews),
// never in local builds or the packaged demo (VERCEL_ENV is unset there).
const isVercelDeploy = !!process.env.VERCEL_ENV
// RTL swaps tabler/plugin stylesheets for their .rtl.css variants (demo stays LTR)
const rtlSuffix = rtl ? '.rtl' : ''
@@ -262,5 +265,7 @@ const libJsFiles = (head: boolean) => pageLibEntries.filter(([, lib]) => Boolean
})
</script>
<!-- END PAGE SCRIPTS -->
{isVercelDeploy && <script is:inline src="https://scripts.tabler.io/banner.js" defer data-tblr-ref="tabler-preview-top-banner" />}
</body>
</html>