Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

fix: Update analytics and tracking environment conditions

VladSezde390b311d5b
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 4935abd..07a98ac 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -67,14 +67,14 @@ export default function RootLayout({
<AxiomWebVitals />
{/* https://openpanel.dev/docs */}
- {process.env.NODE_ENV === "production" && (
+ {process.env.VERCEL_ENV === "production" && (
<OpenPanelComponent
clientId="34cab0b1-c372-4d2d-9646-9a4cea67faf9"
trackScreenViews={true}
/>
)}
- {process.env.NODE_ENV === "production" && (
+ {process.env.VERCEL_ENV === "production" && (
<Script
// we proxy umami check next.config.mjs rewrites
src="/stats/script.js"
diff --git a/src/app/page.tsx b/src/app/page.tsx
index c24b6b8..0ffe13c 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -152,10 +152,10 @@ export default function Home() {
</span>{" "}
Your changes have modified this invoice from its shared
version. Click{" "}
- <span className="font-semibold underline">
+ <span className="font-semibold">
&apos;Generate a link to invoice&apos;
</span>{" "}
- to create an updated shareable link.
+ button to create an updated shareable link.
</p>,
{
duration: 10000,