Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
fix: update APP_URL initialization in monthly recurring invoice task to use environment variable
VladSeze53c83a48dfe
diff --git a/src/trigger/monthly-recurring-invoice.ts b/src/trigger/monthly-recurring-invoice.tsindex 0d67f3d..c247ec1 100644--- a/src/trigger/monthly-recurring-invoice.ts+++ b/src/trigger/monthly-recurring-invoice.ts@@ -5,7 +5,8 @@ import {getWarsawWeekday,WARSAW_TIME_ZONE,} from "./warsaw-time";-import { APP_URL } from "@/config";++const APP_URL = process.env.APP_URL ?? `http://localhost:3000`;const INVOICE_API_URL = `${APP_URL}/api/generate-invoice` as const;