<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Growi SEO</title>
    <description>The latest articles on DEV Community by Growi SEO (@growi_seo_68c2036cdc15b54).</description>
    <link>https://dev.to/growi_seo_68c2036cdc15b54</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4271525%2F813b39fd-9d3f-49e6-8937-aa49b08979d0.png</url>
      <title>DEV Community: Growi SEO</title>
      <link>https://dev.to/growi_seo_68c2036cdc15b54</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/growi_seo_68c2036cdc15b54"/>
    <language>en</language>
    <item>
      <title>How We Built a Multi-Tenant Invoicing &amp; Inventory SaaS on Next.js 15, Cloudflare Workers &amp; D1</title>
      <dc:creator>Growi SEO</dc:creator>
      <pubDate>Sun, 29 Nov 2026 00:42:22 +0000</pubDate>
      <link>https://dev.to/growi_seo_68c2036cdc15b54/how-we-built-a-multi-tenant-invoicing-inventory-saas-on-nextjs-15-cloudflare-workers-d1-512a</link>
      <guid>https://dev.to/growi_seo_68c2036cdc15b54/how-we-built-a-multi-tenant-invoicing-inventory-saas-on-nextjs-15-cloudflare-workers-d1-512a</guid>
      <description>&lt;p&gt;When we started building &lt;strong&gt;&lt;a href="https://aurainvoice.com" rel="noopener noreferrer"&gt;AuraInvoice&lt;/a&gt;&lt;/strong&gt; at &lt;strong&gt;Aura Core Digital&lt;/strong&gt;, we wanted a fast, global invoicing and auto-stock inventory SaaS that runs at the edge with near-zero cold starts and zero credit card storage.&lt;/p&gt;

&lt;p&gt;Here is the exact stack and architecture we shipped:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Edge Runtime: Next.js 15 + OpenNext on Cloudflare Workers
&lt;/h3&gt;

&lt;p&gt;Using &lt;code&gt;@opennextjs/cloudflare&lt;/code&gt;, our App Router pages, API routes, and server-side A4 PDF generation run directly on Cloudflare Workers with sub-20ms worker startup times worldwide.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Multi-Tenant Persistence: Cloudflare D1 SQL
&lt;/h3&gt;

&lt;p&gt;Every user's invoices, quotes, clients, inventory SKUs, stock movement audit trail, purchase orders, expenses, and time entries are isolated by authenticated account ID inside Cloudflare D1.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Practical Security &amp;amp; Zero Card Storage
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Passwords hashed with 100,000-iteration PBKDF2-SHA256 using Web Crypto API&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;HttpOnly&lt;/code&gt; session cookies + optional 6-digit email 2FA&lt;/li&gt;
&lt;li&gt;Subscription billing handled exclusively through Safepay PCI-DSS 3D Secure hosted checkout so card numbers never touch our servers&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Real Server-Side PDFs That Work in iOS In-App Browsers
&lt;/h3&gt;

&lt;p&gt;One real-world gotcha we hit during mobile testing: iOS Gmail and WhatsApp in-app browsers block client-side &lt;code&gt;blob:&lt;/code&gt; downloads and &lt;code&gt;window.print()&lt;/code&gt;. Serving vector A4 PDFs directly from an HTTPS route (&lt;code&gt;/api/public/invoice/[id]/pdf&lt;/code&gt;) with &lt;code&gt;Content-Type: application/pdf&lt;/code&gt; solved mobile downloads across iPhone, Android, and desktop cleanly.&lt;/p&gt;

&lt;p&gt;We also published free no-signup tools alongside the app, including a &lt;a href="https://aurainvoice.com/tools/uae-vat-calculator" rel="noopener noreferrer"&gt;UAE 5% VAT Calculator&lt;/a&gt; and a &lt;a href="https://aurainvoice.com/tools/profit-margin-calculator" rel="noopener noreferrer"&gt;Profit Margin &amp;amp; Markup Calculator&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;AuraInvoice launches publicly in 48 hours at &lt;strong&gt;&lt;a href="https://aurainvoice.com" rel="noopener noreferrer"&gt;https://aurainvoice.com&lt;/a&gt;&lt;/strong&gt; with a Free Forever Starter tier. Happy to answer any questions about running Next.js 15 + D1 on Cloudflare!&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>cloud</category>
      <category>nextjs</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
