<?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: Light Cloud</title>
    <description>The latest articles on DEV Community by Light Cloud (lightcloud).</description>
    <link>https://dev.to/lightcloud</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%2Forganization%2Fprofile_image%2F14938%2Fe488b677-4276-480d-bddd-4095227d5d5e.png</url>
      <title>DEV Community: Light Cloud</title>
      <link>https://dev.to/lightcloud</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lightcloud"/>
    <language>en</language>
    <item>
      <title>SaaS Part 6: Preview Every Pull Request</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Wed, 25 Nov 2026 09:19:21 +0000</pubDate>
      <link>https://dev.to/lightcloud/saas-part-6-preview-every-pull-request-341o</link>
      <guid>https://dev.to/lightcloud/saas-part-6-preview-every-pull-request-341o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffbjacd6prld65t6ezhhv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffbjacd6prld65t6ezhhv.webp" alt="SaaS Part 6: Preview Every Pull Request" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To preview every pull request of a SaaS on Light Cloud, push a branch and open a pull request. Light Cloud builds the branch into its own environment, comments the live link on the pull request, reports a GitHub check, and removes the environment when the branch is deleted. The work for a SaaS is making sure previews start with safe variables: a test database, a separate &lt;code&gt;AUTH_SECRET&lt;/code&gt;, and no live Stripe keys.&lt;/p&gt;

&lt;p&gt;In my run the preview environment and the pull request comment were both there 2 seconds after I opened the pull request, and the preview was live 5 minutes later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will build
&lt;/h2&gt;

&lt;p&gt;A pull request on your fork with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a comment from Light Cloud with the preview's address;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;Light Cloud&lt;/strong&gt; check with the build steps;&lt;/li&gt;
&lt;li&gt;a preview of the branch on its own address;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;automatic cleanup when the branch is deleted.&lt;/p&gt;


&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-5-staging" rel="noopener noreferrer"&gt;part 5&lt;/a&gt;, with its staging database.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Your fork cloned on your laptop, as in &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-5-staging" rel="noopener noreferrer"&gt;part 5&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Check the branch settings
&lt;/h2&gt;

&lt;p&gt;Open the app (not an environment) and its &lt;strong&gt;Settings&lt;/strong&gt; tab. Four switches control previews, and all four are on by default:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa3n4y5gqirh6bl450uir.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa3n4y5gqirh6bl450uir.webp" alt="The app's Settings: Branch Automation with Auto-create environment per branch and Auto-cleanup when branch is deleted, and GitHub with Report deployments as GitHub checks and Comment preview links on pull requests, all four highlighted" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blog.light-cloud.com/tutorials/preview-url-for-every-branch" rel="noopener noreferrer"&gt;A preview URL for every branch&lt;/a&gt; explains each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Know what a preview starts with
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://blog.light-cloud.com/comparisons/preview-environment-pricing" rel="noopener noreferrer"&gt;A preview environment&lt;/a&gt; starts with the app's defaults: the variables you set when you created the app in &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-1-deploy" rel="noopener noreferrer"&gt;part 1&lt;/a&gt;. For this app that's &lt;code&gt;APP_NAME&lt;/code&gt;, &lt;code&gt;EMAIL_FROM&lt;/code&gt;, &lt;code&gt;AUTH_SECRET&lt;/code&gt; and &lt;code&gt;DATABASE_URL&lt;/code&gt;, so a preview runs on the production database with production's secret. The Stripe keys and &lt;code&gt;APP_URL&lt;/code&gt; you added later on &lt;strong&gt;Production&lt;/strong&gt; stay there, so a preview can't take payments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Open a pull request
&lt;/h2&gt;

&lt;p&gt;Make a change on a new branch. In &lt;code&gt;src/lib/plans.ts&lt;/code&gt;, change the Free plan's description:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    description: "For trying it out on your own. No card needed.",


$ git switch main
$ git pull
$ git switch -c free-plan-5-projects
$ git commit -am "Free plan: say no card is needed"
$ git push -u origin free-plan-5-projects


PS&amp;gt; git switch main
PS&amp;gt; git pull
PS&amp;gt; git switch -c free-plan-5-projects
PS&amp;gt; git commit -am "Free plan: say no card is needed"
PS&amp;gt; git push -u origin free-plan-5-projects

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On GitHub, click &lt;strong&gt;Compare &amp;amp; pull request&lt;/strong&gt; on the banner, then &lt;strong&gt;Create pull request&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The app's &lt;strong&gt;Environments&lt;/strong&gt; tab gets a third environment, named after the branch:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fua8nm79tnkkt37tmlqkk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fua8nm79tnkkt37tmlqkk.webp" alt="The Environments tab with Production, Staging and Free Plan 5 Projects on the branch free-plan-5-projects, its commit Free plan: say no card is needed highlighted" width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Its &lt;strong&gt;Settings&lt;/strong&gt; show the variables it inherited, production's &lt;code&gt;DATABASE_URL&lt;/code&gt; and &lt;code&gt;AUTH_SECRET&lt;/code&gt; among them:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffviu7b0algv7nepygex2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffviu7b0algv7nepygex2.webp" alt="The preview's Environment Variables: Inherited from defaults APP_NAME, EMAIL_FROM, AUTH_SECRET and DATABASE_URL, with AUTH_SECRET and DATABASE_URL highlighted" width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Open the preview
&lt;/h2&gt;

&lt;p&gt;Light Cloud comments on the pull request with a table: &lt;strong&gt;Status&lt;/strong&gt; , &lt;strong&gt;Preview&lt;/strong&gt; and &lt;strong&gt;Updated&lt;/strong&gt;. While the branch builds it says &lt;strong&gt;Building&lt;/strong&gt; , and then &lt;strong&gt;Ready&lt;/strong&gt; with the address, &lt;code&gt;https://free-plan-5-projects-tutorial-saas-starter-yourworkspace.light-cloud.io&lt;/code&gt;. The &lt;strong&gt;Light Cloud&lt;/strong&gt; check on the pull request turns green at the same time.&lt;/p&gt;

&lt;p&gt;Open the address. The pricing page shows the new Free plan text, while production still shows the old one:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7p43p15ibt6jfo742weo.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7p43p15ibt6jfo742weo.webp" alt="The Free plan card on the preview: For trying it out on your own. No card needed." width="800" height="798"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Billing on the preview isn't available, because the Stripe variables live on Production only. A preview should never be able to charge a card.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Merge and clean up
&lt;/h2&gt;

&lt;p&gt;Merge the pull request on GitHub with &lt;strong&gt;Merge pull request&lt;/strong&gt; , then click &lt;strong&gt;Delete branch&lt;/strong&gt;. Two things follow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The merge reaches &lt;code&gt;main&lt;/code&gt;, so production redeploys with the new text.&lt;/li&gt;
&lt;li&gt;Deleting the branch removes its environment. The comment on the pull request changes to &lt;strong&gt;Preview removed&lt;/strong&gt; , and the preview's address stops answering. In my run both happened within seconds.
&amp;lt;!-- IMAGE: s6-06-preview-removed.webp, the comment updated to Preview removed. Needs a GitHub sign-in in the capture browser. --&amp;gt;
## Troubleshooting&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The preview shows production's users
&lt;/h3&gt;

&lt;p&gt;That's the inherited &lt;code&gt;DATABASE_URL&lt;/code&gt; from step 2. Set &lt;code&gt;DATABASE_URL&lt;/code&gt; on the preview environment itself to &lt;a href="https://light-cloud.com/databases" rel="noopener noreferrer"&gt;a test database&lt;/a&gt; and push a new commit to the branch, so the preview redeploys.&lt;/p&gt;

&lt;h3&gt;
  
  
  No comment appears on the pull request
&lt;/h3&gt;

&lt;p&gt;The Light Cloud GitHub App needs the pull request, checks and deployments permissions. The app's &lt;strong&gt;Settings&lt;/strong&gt; tab says so if one is missing.&lt;/p&gt;

&lt;h3&gt;
  
  
  The pull request's CI check fails
&lt;/h3&gt;

&lt;p&gt;The repository's own tests run on every pull request too. They check the plan limits, so a change to the number of projects needs the tests in &lt;code&gt;test/plans.test.ts&lt;/code&gt; changed with it.&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>tutorial</category>
      <category>saas</category>
    </item>
    <item>
      <title>Microservices Hosting Costs Compared</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Tue, 24 Nov 2026 16:56:53 +0000</pubDate>
      <link>https://dev.to/lightcloud/microservices-hosting-costs-compared-24hd</link>
      <guid>https://dev.to/lightcloud/microservices-hosting-costs-compared-24hd</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbhvmpr8klh6nb05otyqr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbhvmpr8klh6nb05otyqr.webp" alt="Microservices Hosting Costs Compared" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Five small microservices and one Postgres database cost $5 a month on Light Cloud while they're mostly idle, the cheapest of the eight platforms here, with Google Cloud Run and Railway next at about $9 and $16. Keep all five busy around the clock and the order flips: DigitalOcean is $32, Heroku $40 and Render $41.30, and Light Cloud is the most expensive at about $264.&lt;/p&gt;

&lt;p&gt;We make Light Cloud, one of the eight platforms below, so here's the method first and the sources inline, so you can redo every number.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we ranked
&lt;/h2&gt;

&lt;p&gt;Microservices bills are hard to compare because every platform charges for a different thing. Some sell fixed instances by the month, some meter the memory a process holds, and some bill only while a request is running. So I priced one reference system twice.&lt;/p&gt;

&lt;p&gt;The system is five small HTTP services, each 512 MB or the nearest size, plus one small managed PostgreSQL database with 1 GB of storage. Think of &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-1-deploy" rel="noopener noreferrer"&gt;the coffee shop from our microservices series&lt;/a&gt; with two more services added.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mostly idle: each service gets about 300 requests a day. That's an internal tool, a new product, or a side business between customers. This is the Scale to zero view of the ranking, and the default.&lt;/li&gt;
&lt;li&gt;Always busy: each service needs one instance running every hour of the month. This is the Always on view.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prices are list prices from each vendor's own pricing page or docs, checked on 2026-10-13 and again on 2026-11-02 for Railway, Fly.io and Koyeb, in US dollars, in a US region where prices vary, with no bandwidth, build minutes or tax. One estimate is mine and marked as such: Railway bills the memory and CPU a running service actually uses and publishes no idle figure, so I assumed what a small Node service and Postgres usually hold, about 250 MB per service and 200 MB for the database. No row is priced at a plan's starting fee.&lt;/p&gt;

&lt;p&gt;300 requests a day is one every five minutes, which keeps most sleep timers from ever firing. So platforms that sleep idle services are priced as always on unless their entry says otherwise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ranking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Mostly idle, a month&lt;/th&gt;
&lt;th&gt;Always busy, a month&lt;/th&gt;
&lt;th&gt;Calls between services&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Light Cloud&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;about $264 (Starter)&lt;/td&gt;
&lt;td&gt;Public URLs, about 10 a second per caller&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Google Cloud Run&lt;/td&gt;
&lt;td&gt;about $9&lt;/td&gt;
&lt;td&gt;about $98&lt;/td&gt;
&lt;td&gt;Signed tokens; private needs a VPC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Railway&lt;/td&gt;
&lt;td&gt;about $16 (estimate)&lt;/td&gt;
&lt;td&gt;$42 to $60&lt;/td&gt;
&lt;td&gt;Private network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;DigitalOcean App Platform&lt;/td&gt;
&lt;td&gt;$32&lt;/td&gt;
&lt;td&gt;$32&lt;/td&gt;
&lt;td&gt;Internal network by name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Heroku&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;td&gt;Public URLs outside Private Spaces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Render&lt;/td&gt;
&lt;td&gt;$41.30&lt;/td&gt;
&lt;td&gt;$41.30&lt;/td&gt;
&lt;td&gt;Private network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Fly.io&lt;/td&gt;
&lt;td&gt;$56.73&lt;/td&gt;
&lt;td&gt;$56.73&lt;/td&gt;
&lt;td&gt;Private network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Koyeb&lt;/td&gt;
&lt;td&gt;$62.66&lt;/td&gt;
&lt;td&gt;$62.66&lt;/td&gt;
&lt;td&gt;Service mesh (not on Free)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Five small services and one managed PostgreSQL database with 1 GB of storage. List prices from each vendor's pricing pages and docs, checked 2026-10-13, US dollars. Railway's idle figure assumes about 250 MB of memory per service and 200 MB for Postgres, 0.05 vCPU in total and a 1 GB volume. Light Cloud's busy figure is five always-on Micro instances at about $52 each plus a $4 database.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Light Cloud
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; systems whose services sit idle most of the day and call each other only now and then.&lt;/p&gt;

&lt;p&gt;Five server apps and one shared Postgres database are exactly what the Lite plan allows, and Lite is $5 a month with $5 of usage included (&lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). A quiet server app with 300 requests a day uses about $0.10 a month by the pricing page's own formula, so five use $0.50, and the shared &lt;a href="https://light-cloud.com/databases" rel="noopener noreferrer"&gt;managed PostgreSQL&lt;/a&gt; is $4. That's $4.50 of usage inside the $5 plan. It works because every service is &lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;usage-based hosting that scales to zero&lt;/a&gt; by default and counts nothing between requests.&lt;/p&gt;

&lt;p&gt;Two weaknesses, both measured. First, busy months are expensive: an always-on Micro is about $52, needs the $19 Starter plan, and five of them plus the database come to about $264. Second, services call each other over their public HTTPS addresses, through the same edge your visitors use. I tested it on 2026-10-13 with two services in the same workspace: one service calling another at 10 requests a second was fine for 20 seconds, while at 15 a second the edge started answering 429 after about ten seconds and kept blocking for about ten more. The limit counts all your services together, so a gateway calling three services at 5 a second each hits it. You can see the same limit from a laptop in &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-3-autoscaling" rel="noopener noreferrer"&gt;the autoscaling part of our series&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Google Cloud Run
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams on Google Cloud whose services fit the free tier and who can wire IAM themselves.&lt;/p&gt;

&lt;p&gt;Request-based billing charges only while a request is running, and the monthly free tier covers 180,000 vCPU-seconds and 2 million requests (&lt;a href="https://cloud.google.com/run/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Five quiet services use under 100,000 vCPU-seconds even if every request paid a two-second &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-4-cold-starts" rel="noopener noreferrer"&gt;cold start&lt;/a&gt;, so compute is $0. The database is the bill: Cloud SQL's smallest instance, db-f1-micro, is about $7.56 a month plus about $1.68 for 10 GiB of storage. About $9.24 in total, with a billing account and a card.&lt;/p&gt;

&lt;p&gt;Busy is a different story, because a busy service pays the active rate for every second it works. At 0.25 vCPU and 512 MiB with request-based billing, five services and Cloud SQL come to about $98 a month, and more once traffic needs a second instance, since below 1 vCPU each instance takes one request at a time (&lt;a href="https://cloud.google.com/run/docs/configuring/services/cpu" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). Instance-based billing needs at least 1 vCPU and would cost about $250. Service-to-service calls in one region have no networking charge, but private services check a Google-signed ID token on every call, and keeping a service internal-only means routing the caller through a VPC.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Railway
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; small systems that want a private network and a bill that follows the memory they really use.&lt;/p&gt;

&lt;p&gt;Hobby is $5 a month, and you pay the larger of $5 or your usage: $10 per GB of memory a month and $20 per vCPU a month (&lt;a href="https://railway.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). A small Node service holds about 250 MB even when idle and Postgres about 200 MB, so the system holds about 1.45 GB: $14.50 of memory, about $1 of CPU at 0.05 vCPU in total, and $0.15 for a 1 GB volume. That's $15.65 of usage, so the bill is about $16. Railway itself says an idle server still uses memory to stay loaded, and it publishes no idle number, so treat this as an estimate: at 0.1 GB per service it would be about $8, at the full 0.5 GB about $28.&lt;/p&gt;

&lt;p&gt;Services in a project share a private network with internal DNS, so calls between them never touch a public rate limit or an egress meter. The catch for a quiet system: Railway's optional sleep doesn't fire for a service that keeps a database pool open or calls other services over the private network (&lt;a href="https://docs.railway.com/deployments/serverless" rel="noopener noreferrer"&gt;docs&lt;/a&gt;), which describes most microservices. Busy, five services and Postgres at 0.5 GB and a quarter of a vCPU each come to about $60.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. DigitalOcean App Platform
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; the cheapest busy system, if a development database without default backups is acceptable.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://blog.light-cloud.com/comparisons/cheapest-way-to-run-a-docker-container" rel="noopener noreferrer"&gt;smallest container&lt;/a&gt; is $5 a month for 512 MiB, fixed at one instance, and a development PostgreSQL database is $7 (&lt;a href="https://www.digitalocean.com/pricing/app-platform" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Five plus the database is $32, idle or busy, because nothing scales down. One app spec can hold all five services and the database, and components reach each other by name over the app's internal network.&lt;/p&gt;

&lt;p&gt;That $7 database is tied to the app, isn't backed up by default and is deleted with the app. A managed PostgreSQL cluster instead brings the total to $40.15. The $5 size can't scale out at all; scalable sizes start at $12, and scale to zero is still a private preview.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Heroku
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams that know &lt;a href="https://blog.light-cloud.com/comparisons/heroku-alternatives" rel="noopener noreferrer"&gt;Heroku&lt;/a&gt; and want flat prices for always-on services.&lt;/p&gt;

&lt;p&gt;Each HTTP service is its own Heroku app, because only the web process type receives traffic from the router. Five Basic dynos at $7 and an Essential-0 database at $5 make $40 (&lt;a href="https://www.heroku.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Eco dynos don't fit: their 1,000 shared hours a month cover fewer than two services kept awake, and Eco is for personal apps only.&lt;/p&gt;

&lt;p&gt;Everything about the busy month is predictable, which is the point of Heroku. The limits are the familiar ones: Essential-0 allows 20 connections, so five services get four each; dynos on the shared runtime are isolated from each other and talk over public URLs; and autoscaling starts with Performance-M dynos at $250 a month each.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Render
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; fixed prices per service, a private network and the whole system in one render.yaml.&lt;/p&gt;

&lt;p&gt;Five Starter web services at $7 and the smallest Postgres at $6 plus $0.30 for 1 GB of storage come to $41.30 on the free Hobby workspace (&lt;a href="https://render.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Same price idle or busy. Services in one region share a private network, and a Blueprint describes services, databases and the wiring between them in &lt;a href="https://render.com/docs/blueprint-spec" rel="noopener noreferrer"&gt;one YAML file&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Free instances don't help here: five services kept up all month need 3,600 instance-hours against 750 free ones, free services can't receive private network traffic, and free Postgres expires after 30 days. Autoscaling and full-system previews need the Pro workspace at $25 a month, which takes this system to $66.30.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Fly.io
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; services that must run in several regions and talk over a private network.&lt;/p&gt;

&lt;p&gt;Five 512 MB machines are $3.69 each per 30 days in Ashburn (&lt;a href="https://docs.fly.io/about/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), $18.45 in total. Then the database: the smallest Managed Postgres is $38 a month plus $0.28 per GB, so the system is $56.73, two-thirds of it Postgres. Machines can stop when idle, and if all the traffic falls inside a ten-hour working day the bill drops to about $46. Fly's older self-managed Postgres would take it to about $21, but Fly doesn't support it.&lt;/p&gt;

&lt;p&gt;Every organization gets a private WireGuard network across regions. One detail matters for internal services: requests over plain &lt;code&gt;.internal&lt;/code&gt; addresses skip the proxy that stops and starts machines, so an internal service only sleeps if its callers use a Flycast address instead (&lt;a href="https://docs.fly.io/networking/flycast" rel="noopener noreferrer"&gt;docs&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Koyeb
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; public services that can sleep, on a team plan with ten users included.&lt;/p&gt;

&lt;p&gt;New accounts start on Pro, $29 a month with $10 of compute included (&lt;a href="https://www.koyeb.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Five eco-micro instances with 512 MB are $2.68 each (&lt;a href="https://www.koyeb.com/docs/reference/instances" rel="noopener noreferrer"&gt;instances&lt;/a&gt;), and the smallest Postgres is $29.76 a month if it never sleeps, plus $0.50 for 1 GB. That's $43.66 of compute and a $62.66 bill, assuming the included $10 also covers the database, which the pricing page doesn't spell out.&lt;/p&gt;

&lt;p&gt;Koyeb can scale services to zero, and its Postgres sleeps after five idle minutes. But scale to zero only works for services exposed to the internet, and only internet traffic wakes them (&lt;a href="https://www.koyeb.com/docs/run-and-scale/scale-to-zero" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). In a system where internal services wait for calls from other services, those can't sleep.&lt;/p&gt;

&lt;h2&gt;
  
  
  When all five are busy
&lt;/h2&gt;

&lt;p&gt;With every service running all month, the order turns over. DigitalOcean is cheapest at $32 with its development database, then Heroku at $40, Render at $41.30, Railway at $42 to $60 depending on the CPU used, Fly.io at $56.73 and Koyeb at $62.66. Google Cloud Run is about $98, because a busy service pays its active rate every second. Light Cloud is last at about $264 for five always-on Micro instances on Starter.&lt;/p&gt;

&lt;p&gt;Scale to zero is a bet that your services are idle most of the time. When they're not, a fixed $5 to $7 instance beats an hourly meter by a wide margin, and that's true of us and of Cloud Run, which we run on. A busy system on Light Cloud would also run into the call limit above long before the bill, unless its services rarely call each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the others beat us
&lt;/h2&gt;

&lt;p&gt;Most of the ways to lose are in that busy table. DigitalOcean, Heroku and Render run five busy services for $32 to $41, and Railway for $42 to $60, against our $264. If your traffic is steady, any of them is the better buy.&lt;/p&gt;

&lt;p&gt;The other loss is architecture. Railway, Render, Fly.io, DigitalOcean and Koyeb give services a private network; ours &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-2-connect-services" rel="noopener noreferrer"&gt;talk over public URLs&lt;/a&gt;, need CORS and shared secrets, and share an edge limit of about 10 calls a second per caller. Render and DigitalOcean describe the whole system in one file. Fly runs it in many regions.&lt;/p&gt;

&lt;p&gt;What we do better is the quiet month, and for many systems that's most months. Five services that wait for traffic cost $0.50 of usage here, a &lt;a href="https://light-cloud.com/previews" rel="noopener noreferrer"&gt;preview environment for every branch&lt;/a&gt; costs $0 while idle, and &lt;a href="https://blog.light-cloud.com/comparisons/microservices-without-kubernetes" rel="noopener noreferrer"&gt;the ranking of where to run microservices&lt;/a&gt; covers the parts a bill doesn't. If your system is a handful of services that mostly wait, the &lt;a href="https://light-cloud.com" rel="noopener noreferrer"&gt;cheapest microservices hosting&lt;/a&gt; I know of is the one that bills nothing while they do.&lt;/p&gt;

&lt;p&gt;Which of the two months looks more like yours?&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>microservices</category>
      <category>cloudcost</category>
    </item>
    <item>
      <title>SaaS Part 5: Add a Password-Protected Staging Site</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:02:43 +0000</pubDate>
      <link>https://dev.to/lightcloud/saas-part-5-add-a-password-protected-staging-site-3o5g</link>
      <guid>https://dev.to/lightcloud/saas-part-5-add-a-password-protected-staging-site-3o5g</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq36snhlbox66go449yrl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq36snhlbox66go449yrl.webp" alt="SaaS Part 5: Add a Password-Protected Staging Site" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To add a staging site to a SaaS on Light Cloud, push a &lt;code&gt;staging&lt;/code&gt; branch. Light Cloud creates a &lt;strong&gt;Staging&lt;/strong&gt; environment with its own address. Then give it its own PostgreSQL database by setting &lt;code&gt;DATABASE_URL&lt;/code&gt; on that environment, and set a visitor password on its &lt;strong&gt;Security&lt;/strong&gt; tab. Staging then runs the same code on the same infrastructure as production, but test sign-ups never reach your customers' data.&lt;/p&gt;

&lt;p&gt;In my run the &lt;strong&gt;Staging&lt;/strong&gt; environment appeared 2 seconds after the push, and the password page was up 12 seconds after I saved the password.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will build
&lt;/h2&gt;

&lt;p&gt;A second copy of the app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-4-custom-domain" rel="noopener noreferrer"&gt;part 4&lt;/a&gt;, on its own address and &lt;a href="https://blog.light-cloud.com/comparisons/password-protect-website-free" rel="noopener noreferrer"&gt;behind a password&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Production&lt;/th&gt;
&lt;th&gt;Staging&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Branch&lt;/td&gt;
&lt;td&gt;&lt;code&gt;main&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;staging&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Address&lt;/td&gt;
&lt;td&gt;your domain from part 4&lt;/td&gt;
&lt;td&gt;&lt;code&gt;staging-tutorial-saas-starter-yourworkspace.light-cloud.io&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;&lt;code&gt;saas-db&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;saas-staging-db&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Visitors&lt;/td&gt;
&lt;td&gt;everyone&lt;/td&gt;
&lt;td&gt;only people with the password&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftf013d9kok3grn1gimil.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftf013d9kok3grn1gimil.webp" alt="The app's Environments tab with Production on main and Staging on staging, both Deployed, Staging highlighted" width="800" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-4-custom-domain" rel="noopener noreferrer"&gt;part 4&lt;/a&gt;, running.&lt;/li&gt;
&lt;li&gt;A plan with two databases. Lite includes one, so I ran this on Starter. &lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;Pricing&lt;/a&gt; lists what each plan includes.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://git-scm.com/downloads" rel="noopener noreferrer"&gt;Git&lt;/a&gt; and a clone of your fork:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git clone https://github.com/YOUR-USERNAME/tutorial-saas-starter.git
$ cd tutorial-saas-starter


PS&amp;gt; git clone https://github.com/YOUR-USERNAME/tutorial-saas-starter.git
PS&amp;gt; cd tutorial-saas-starter

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why staging needs its own database
&lt;/h2&gt;

&lt;p&gt;A new environment starts with the variables you set when you created the app in &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-1-deploy" rel="noopener noreferrer"&gt;part 1&lt;/a&gt;: &lt;code&gt;APP_NAME&lt;/code&gt;, &lt;code&gt;EMAIL_FROM&lt;/code&gt;, &lt;code&gt;AUTH_SECRET&lt;/code&gt; and &lt;code&gt;DATABASE_URL&lt;/code&gt;. So a fresh staging environment talks to the production database until you change that. Variables you added later on &lt;strong&gt;Production&lt;/strong&gt; , like the Stripe keys and &lt;code&gt;APP_URL&lt;/code&gt;, stay on Production.&lt;/p&gt;

&lt;p&gt;That's why the database comes first in this tutorial, before the branch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create the staging database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;a href="https://console.light-cloud.com" rel="noopener noreferrer"&gt;Light Cloud console&lt;/a&gt;, click &lt;strong&gt;New...&lt;/strong&gt; , &lt;strong&gt;New Database&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Name it &lt;code&gt;saas-staging-db&lt;/code&gt;, keep &lt;strong&gt;Size&lt;/strong&gt; at &lt;strong&gt;Dev&lt;/strong&gt; , and click &lt;strong&gt;Create database&lt;/strong&gt;. Mine was ready within seconds.&lt;/li&gt;
&lt;li&gt;On its &lt;strong&gt;Credentials&lt;/strong&gt; tab, choose &lt;strong&gt;Connect from: Node.js&lt;/strong&gt; and copy the &lt;strong&gt;Connection String&lt;/strong&gt; , as in &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-1-deploy" rel="noopener noreferrer"&gt;part 1&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Make a second &lt;code&gt;AUTH_SECRET&lt;/code&gt; too. Staging is where you share passwords and test accounts with other people, so keep its secrets apart from production's:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ openssl rand -hex 32


$ openssl rand -hex 32

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows, run it in Git Bash.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Push the staging branch
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git switch -c staging
$ git push -u origin staging


PS&amp;gt; git switch -c staging
PS&amp;gt; git push -u origin staging

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Auto-create environment per branch&lt;/strong&gt; is on by default, so Light Cloud builds the branch by itself. The app's &lt;strong&gt;Environments&lt;/strong&gt; tab lists &lt;strong&gt;Staging&lt;/strong&gt; next to &lt;strong&gt;Production&lt;/strong&gt; , and the sidebar shows &lt;code&gt;staging&lt;/code&gt; under the app. My first staging build was live 7 minutes after the push.&lt;/p&gt;

&lt;p&gt;Open &lt;strong&gt;Staging&lt;/strong&gt; , then &lt;strong&gt;Settings&lt;/strong&gt; , and look at &lt;strong&gt;Environment Variables&lt;/strong&gt;. The card says which ones came from the app:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbkpk2yacqgfr3a37vo7c.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbkpk2yacqgfr3a37vo7c.webp" alt="The Environment Variables card of Staging: Inherited from defaults APP_NAME, EMAIL_FROM, AUTH_SECRET, DATABASE_URL, highlighted, with the values hidden" width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That first build ran on the production database. The migrations had nothing to do there, so it changed nothing, but it's the reason for the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Give staging its own variables
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;On the &lt;strong&gt;Environment Variables&lt;/strong&gt; card of &lt;strong&gt;Staging&lt;/strong&gt; , click &lt;strong&gt;Edit&lt;/strong&gt;. The editor lists the inherited variables with their values, ready to change.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;APP_NAME&lt;/code&gt; to &lt;code&gt;Rota Planner (staging)&lt;/code&gt;, so nobody mistakes one for the other.&lt;/li&gt;
&lt;li&gt;Replace &lt;code&gt;AUTH_SECRET&lt;/code&gt; with the new secret, and &lt;code&gt;DATABASE_URL&lt;/code&gt; with the staging connection string.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwua2hwntf6xw40lkbgo6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwua2hwntf6xw40lkbgo6.webp" alt="The staging editor with APP_NAME Rota Planner (staging), and the new AUTH_SECRET and DATABASE_URL hidden, Save highlighted" width="799" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The editor shows the inherited values in plain text, production's database password among them. Edit it where nobody is looking over your shoulder.&lt;/p&gt;

&lt;p&gt;Saving redeploys staging. On start it &lt;a href="https://blog.light-cloud.com/tutorials/database-migrations-in-deploys" rel="noopener noreferrer"&gt;runs the migrations&lt;/a&gt; against the empty staging database. The &lt;strong&gt;Logs&lt;/strong&gt; tab shows &lt;code&gt;Database migrations are up to date.&lt;/code&gt; again, and &lt;code&gt;saas-staging-db&lt;/code&gt; now has the app's 10 tables and no users.&lt;/p&gt;

&lt;p&gt;Staging has no Stripe variables, so billing is off there. If you want to test payments on staging, add a second webhook endpoint in Stripe's test mode that points at the staging address, and set the four &lt;code&gt;STRIPE_&lt;/code&gt; variables on &lt;strong&gt;Staging&lt;/strong&gt; , with that endpoint's signing secret.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Set a password
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;On &lt;strong&gt;Staging&lt;/strong&gt; , open the &lt;strong&gt;Security&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Password Protection&lt;/strong&gt; , click &lt;strong&gt;Set password&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter a password twice and click &lt;strong&gt;Save password&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8xsc67m1nr3wns3dicbg.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8xsc67m1nr3wns3dicbg.webp" alt="The Password Protection card with both password fields filled and Save password highlighted" width="799" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Store the password before you save. The console says so too: it's hashed on save and can't be shown again. The card then says &lt;strong&gt;This site is password protected&lt;/strong&gt; :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq8jxnsnzno8s2qds2ctj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq8jxnsnzno8s2qds2ctj.webp" alt="The Password Protection card saying This site is password protected, with Change and Remove" width="800" height="91"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It applies to staging only, and without a redeploy. Open the staging address in a private window and you get the password page first:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6f0pxsdcjvvpjxm4w0ch.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6f0pxsdcjvvpjxm4w0ch.webp" alt="The password page: tutorial-saas-starter, Enter the password to view this site, a Password field and Continue, Protected by Light Cloud" width="800" height="734"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From the terminal you can see what search engines get:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ curl -I https://staging-tutorial-saas-starter-yourworkspace.light-cloud.io/
HTTP/2 401
x-robots-tag: noindex, nofollow


PS&amp;gt; curl.exe -I https://staging-tutorial-saas-starter-yourworkspace.light-cloud.io/
HTTP/2 401
x-robots-tag: noindex, nofollow

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://blog.light-cloud.com/tutorials/password-protect-a-staging-site" rel="noopener noreferrer"&gt;Put a password on a staging site&lt;/a&gt; covers the password page in more detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Try a change on staging
&lt;/h2&gt;

&lt;p&gt;Make a visible change on the staging branch. In &lt;code&gt;src/lib/plans.ts&lt;/code&gt;, change the Pro plan's description:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;    &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"For small teams shipping every week, now with email support."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;


$ &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;commit&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;am&lt;/span&gt; &lt;span class="s2"&gt;"Pro plan: mention email support"&lt;/span&gt;
$ &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;push&lt;/span&gt;


&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;commit&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;am&lt;/span&gt; &lt;span class="s2"&gt;"Pro plan: mention email support"&lt;/span&gt;
&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;push&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Staging redeploys and shows the new text on its pricing page:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foqna81dwef7taa04rbzv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foqna81dwef7taa04rbzv.webp" alt="The Pro plan card on staging: For small teams shipping every week, now with email support" width="800" height="798"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Production still shows the old one:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp8qt5fao0oumit1b0vk0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp8qt5fao0oumit1b0vk0.webp" alt="The Pro plan card on production: For small teams shipping every week" width="800" height="760"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Promote staging to production
&lt;/h2&gt;

&lt;p&gt;When staging looks right, merge it into &lt;code&gt;main&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;$ &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="k"&gt;switch&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;
$ &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;pull&lt;/span&gt;
$ &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;merge&lt;/span&gt; &lt;span class="n"&gt;staging&lt;/span&gt;
$ &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;push&lt;/span&gt;


&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="k"&gt;switch&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;
&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;pull&lt;/span&gt;
&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;merge&lt;/span&gt; &lt;span class="n"&gt;staging&lt;/span&gt;
&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;git&lt;/span&gt; &lt;span class="n"&gt;push&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Production redeploys from &lt;code&gt;main&lt;/code&gt; with its own variables, database and domain. Mine took 4 minutes 18 seconds, shorter than the first build in part 1. Keep the &lt;code&gt;staging&lt;/code&gt; branch for the next change. If you delete it, Light Cloud removes the staging environment with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Staging shows the same users as production
&lt;/h3&gt;

&lt;p&gt;Staging still uses the inherited &lt;code&gt;DATABASE_URL&lt;/code&gt;. Set it on the &lt;strong&gt;Staging&lt;/strong&gt; environment, save, and let the redeploy finish.&lt;/p&gt;

&lt;h3&gt;
  
  
  The staging password page doesn't appear
&lt;/h3&gt;

&lt;p&gt;You opened production, or a browser that already entered the password. Try a private window on the staging address.&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>tutorial</category>
      <category>saas</category>
    </item>
    <item>
      <title>SaaS Part 4: Add Your Own Domain</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:27:54 +0000</pubDate>
      <link>https://dev.to/lightcloud/saas-part-4-add-your-own-domain-16nm</link>
      <guid>https://dev.to/lightcloud/saas-part-4-add-your-own-domain-16nm</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbnpaln19djwdc4ditp81.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbnpaln19djwdc4ditp81.webp" alt="SaaS Part 4: Add Your Own Domain" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To add your own domain to an app on Light Cloud, open the environment's &lt;strong&gt;Domain&lt;/strong&gt; tab, enter the domain, and add the CNAME and TXT records it shows at your DNS provider. Light Cloud verifies the domain and issues an HTTPS certificate by itself. For a SaaS, three things also need the new address afterwards: the &lt;code&gt;APP_URL&lt;/code&gt; variable, the Stripe webhook endpoint, and any GitHub or Google sign-in callbacks.&lt;/p&gt;

&lt;p&gt;In this tutorial the domain is &lt;code&gt;app.example.com&lt;/code&gt;, a stand-in for yours. Wherever you see it, type your own domain instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will build
&lt;/h2&gt;

&lt;p&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-3-stripe" rel="noopener noreferrer"&gt;part 3&lt;/a&gt;, on &lt;code&gt;https://app.example.com&lt;/code&gt; instead of its &lt;code&gt;light-cloud.io&lt;/code&gt; address, with HTTPS, and with sign-in, emails and payments still working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-3-stripe" rel="noopener noreferrer"&gt;part 3&lt;/a&gt;, running.&lt;/li&gt;
&lt;li&gt;A domain you can add DNS records to, at whichever company you bought it from or that runs its DNS (your DNS provider).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put the app on a subdomain such as &lt;code&gt;app.&lt;/code&gt; or &lt;code&gt;www.&lt;/code&gt;, which works with every provider. A root domain such as &lt;code&gt;example.com&lt;/code&gt; can't have a normal CNAME, so it only works if your provider supports CNAME flattening (sometimes called ALIAS or ANAME).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Add the domain
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;a href="https://console.light-cloud.com" rel="noopener noreferrer"&gt;Light Cloud console&lt;/a&gt;, open the app, then &lt;strong&gt;Production&lt;/strong&gt; , and the &lt;strong&gt;Domain&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Custom Domain&lt;/strong&gt; , click &lt;strong&gt;Add domain&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter &lt;code&gt;app.example.com&lt;/code&gt;, without &lt;code&gt;https://&lt;/code&gt;, and click &lt;strong&gt;Save domain&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu4peng5judrcd47gw7lk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu4peng5judrcd47gw7lk.webp" alt="The Custom Domain card with app.example.com in the Domain name field and Save domain highlighted" width="798" height="175"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The card now shows the domain as &lt;strong&gt;Pending&lt;/strong&gt; and lists the three records to add:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjxzcdgdd7pj9bp5cmvrw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjxzcdgdd7pj9bp5cmvrw.webp" alt="The Custom Domain card: app.example.com Pending, and Add at your DNS provider with a CNAME app to light-cloud.io and two TXT records, _acme-challenge.app and _cf-custom-hostname.app, highlighted" width="799" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Add the DNS records at your provider
&lt;/h2&gt;

&lt;p&gt;This step happens outside Light Cloud. Sign in at your DNS provider, open the DNS settings of your domain, and add the three records exactly as the &lt;strong&gt;Domain&lt;/strong&gt; tab shows them:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Name / Host&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CNAME&lt;/td&gt;
&lt;td&gt;&lt;code&gt;app&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;light-cloud.io&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TXT&lt;/td&gt;
&lt;td&gt;&lt;code&gt;_acme-challenge.app&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the value from your Domain tab&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TXT&lt;/td&gt;
&lt;td&gt;&lt;code&gt;_cf-custom-hostname.app&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the value from your Domain tab&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The two TXT values are different for every domain, so copy yours with the copy button next to each one. In the &lt;strong&gt;Name&lt;/strong&gt; or &lt;strong&gt;Host&lt;/strong&gt; field, enter only the part before your domain, as in the table. Most providers add &lt;code&gt;example.com&lt;/code&gt; by themselves.&lt;/p&gt;

&lt;p&gt;If your provider can proxy traffic (Cloudflare's orange cloud, for example), switch it off for the CNAME, so the name points straight at Light Cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Wait for the certificate
&lt;/h2&gt;

&lt;p&gt;Back on the &lt;strong&gt;Domain&lt;/strong&gt; tab, click &lt;strong&gt;Check again&lt;/strong&gt;. The console says changes usually show within minutes, sometimes up to 48 hours. Once the records are found and the certificate is issued, the domain turns &lt;strong&gt;Active&lt;/strong&gt; :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F56fgufbcsok2v3lm7k9i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F56fgufbcsok2v3lm7k9i.webp" alt="The Custom Domain card with app.example.com marked Active" width="799" height="96"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open &lt;code&gt;https://app.example.com&lt;/code&gt;. The app loads with a valid certificate. The &lt;code&gt;light-cloud.io&lt;/code&gt; address keeps working too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Set APP_URL
&lt;/h2&gt;

&lt;p&gt;Until now the app has worked out its own address from each request. That's why sign-in and email links worked before the domain existed. Now that the app has a permanent address, set it, so email links always use it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Production&lt;/strong&gt; , &lt;strong&gt;Settings&lt;/strong&gt; , and click &lt;strong&gt;Edit&lt;/strong&gt; next to &lt;strong&gt;Environment Variables&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add&lt;/strong&gt; , and enter &lt;code&gt;APP_URL&lt;/code&gt; with the value &lt;code&gt;https://app.example.com&lt;/code&gt;, without a slash at the end.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdzj59wycjeu41vf6sbxf.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdzj59wycjeu41vf6sbxf.webp" alt="The Production editor with the variables from parts 1 to 3, secrets hidden, and a new row APP_URL https://app.example.com, with Save highlighted" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Saving deploys the app again. From now on, a link in an email sent from the old address still opens the new domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Move the Stripe webhook
&lt;/h2&gt;

&lt;p&gt;The Stripe webhook from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-3-stripe" rel="noopener noreferrer"&gt;part 3&lt;/a&gt; still points at the &lt;code&gt;light-cloud.io&lt;/code&gt; address. Change it to the new domain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Stripe (still in test mode), open &lt;strong&gt;Developers&lt;/strong&gt; , &lt;strong&gt;Webhooks&lt;/strong&gt; , and your endpoint, and edit its destination. &amp;lt;!-- VERIFY: Stripe's labels, with the Stripe sandbox signed in --&amp;gt;&lt;/li&gt;
&lt;li&gt;Change the URL to &lt;code&gt;https://app.example.com/api/auth/stripe/webhook&lt;/code&gt; and save.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The signing secret stays the same, so &lt;code&gt;STRIPE_WEBHOOK_SECRET&lt;/code&gt; doesn't change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Check everything
&lt;/h2&gt;

&lt;p&gt;On the new domain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sign out and sign in again.&lt;/li&gt;
&lt;li&gt;Ask for a password reset and check that the link in the email starts with &lt;code&gt;https://app.example.com&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Upgrade a test workspace with the card &lt;code&gt;4242 4242 4242 4242&lt;/code&gt;, and check the plan changes. In Stripe, the webhook delivery shows &lt;code&gt;200&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you added GitHub or Google sign-in, also add &lt;code&gt;https://app.example.com/api/auth/callback/github&lt;/code&gt; and &lt;code&gt;https://app.example.com/api/auth/callback/google&lt;/code&gt; to their OAuth apps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The domain stays pending
&lt;/h3&gt;

&lt;p&gt;The records aren't visible yet, or one has a typo. Check the CNAME from your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;$ &lt;span class="n"&gt;nslookup&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;


&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;nslookup&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer should mention &lt;code&gt;light-cloud.io&lt;/code&gt;. If it doesn't, compare the name you typed: some providers add the domain by themselves, so &lt;code&gt;app.example.com&lt;/code&gt; typed in full becomes &lt;code&gt;app.example.com.example.com&lt;/code&gt;. Enter only &lt;code&gt;app&lt;/code&gt; as the name.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sign-in redirects to the old address
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;APP_URL&lt;/code&gt; is missing or ends with a slash. Set it to &lt;code&gt;https://app.example.com&lt;/code&gt; and let the redeploy finish.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payments work, but the plan doesn't change any more
&lt;/h3&gt;

&lt;p&gt;The Stripe webhook still points at the old address, or at a typo. Check the endpoint URL in Stripe.&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>tutorial</category>
      <category>saas</category>
    </item>
    <item>
      <title>SaaS Part 3: Take Payments With Stripe (Test Mode)</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:54:16 +0000</pubDate>
      <link>https://dev.to/lightcloud/saas-part-3-take-payments-with-stripe-test-mode-1p3j</link>
      <guid>https://dev.to/lightcloud/saas-part-3-take-payments-with-stripe-test-mode-1p3j</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fta8i0pbzlpf1ryzxtnm9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fta8i0pbzlpf1ryzxtnm9.webp" alt="SaaS Part 3: Take Payments With Stripe (Test Mode)" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To take payments in a SaaS on Light Cloud, create your subscription prices in Stripe's test mode, add a webhook that points at &lt;code&gt;/api/auth/stripe/webhook&lt;/code&gt; on your app's URL, and set four environment variables: &lt;code&gt;STRIPE_SECRET_KEY&lt;/code&gt;, &lt;code&gt;STRIPE_WEBHOOK_SECRET&lt;/code&gt;, &lt;code&gt;STRIPE_PRICE_PRO&lt;/code&gt; and &lt;code&gt;STRIPE_PRICE_BUSINESS&lt;/code&gt;. After the redeploy, workspace owners can upgrade through Stripe Checkout, and the webhook keeps each workspace's plan in sync with Stripe.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will build
&lt;/h2&gt;

&lt;p&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-2-email" rel="noopener noreferrer"&gt;part 2&lt;/a&gt;, with working billing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a pricing page with Free, Pro ($19 a month) and Business ($49 a month);&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade to Pro&lt;/strong&gt; and &lt;strong&gt;Upgrade to Business&lt;/strong&gt; on the workspace's billing page, through Stripe Checkout;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manage billing in Stripe&lt;/strong&gt; , which opens Stripe's customer portal to change plan, update the card or cancel;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;plan limits that follow the subscription: Free allows 3 projects, Pro 50, Business unlimited.&lt;/p&gt;


&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-2-email" rel="noopener noreferrer"&gt;part 2&lt;/a&gt;, running. Part 2 isn't strictly needed for billing, but receipts and invitations work better with email on.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A &lt;a href="https://stripe.com" rel="noopener noreferrer"&gt;Stripe&lt;/a&gt; account. You don't need to activate payments for test mode.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Make sure the toggle at the top of the Stripe Dashboard says &lt;strong&gt;Test mode&lt;/strong&gt; (Stripe calls it a sandbox in newer accounts) for every step below. &amp;lt;!-- VERIFY: current Stripe label: "Test mode" or "Sandbox" --&amp;gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create the products and prices
&lt;/h2&gt;

&lt;p&gt;The app's plans live in &lt;code&gt;src/lib/plans.ts&lt;/code&gt;. The prices shown there are for display only. Stripe charges what the price in Stripe says, so create matching prices:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Stripe, open &lt;strong&gt;Product catalog&lt;/strong&gt; and click &lt;strong&gt;Add product&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Name it &lt;code&gt;Pro&lt;/code&gt;, choose &lt;strong&gt;Recurring&lt;/strong&gt; , &lt;strong&gt;Monthly&lt;/strong&gt; , and enter &lt;code&gt;19.00&lt;/code&gt;. Click &lt;strong&gt;Add product&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Do the same for &lt;code&gt;Business&lt;/code&gt; at &lt;code&gt;49.00&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Open each product and copy its price ID. It starts with &lt;code&gt;price_&lt;/code&gt;.
&amp;lt;!-- IMAGE: s3-01-stripe-price.webp, a product page with the price ID highlighted (light + dark) --&amp;gt;
## Step 2: Add the webhook&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Stripe tells the app about payments through a webhook. Without it the payment goes through, but the workspace never changes plan.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Stripe, open &lt;strong&gt;Developers&lt;/strong&gt; , &lt;strong&gt;Webhooks&lt;/strong&gt; , and click &lt;strong&gt;Add endpoint&lt;/strong&gt;. &amp;lt;!-- VERIFY: Stripe's current menu path ("Workbench" in newer dashboards) --&amp;gt;&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;Endpoint URL&lt;/strong&gt; , enter your app's URL followed by &lt;code&gt;/api/auth/stripe/webhook&lt;/code&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://main-tutorial-saas-starter-yourworkspace.light-cloud.io/api/auth/stripe/webhook

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Under &lt;strong&gt;Select events&lt;/strong&gt; , add these four:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;checkout.session.completed&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;customer.subscription.created&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;customer.subscription.updated&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;customer.subscription.deleted&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add endpoint&lt;/strong&gt; , then &lt;strong&gt;Reveal&lt;/strong&gt; under &lt;strong&gt;Signing secret&lt;/strong&gt; , and copy it. It starts with &lt;code&gt;whsec_&lt;/code&gt;.
&amp;lt;!-- IMAGE: s3-02-webhook.webp, the webhook endpoint with its URL and the four events (light + dark) --&amp;gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-4-custom-domain" rel="noopener noreferrer"&gt;Part 4&lt;/a&gt; moves the app to its own domain. The webhook URL changes then too, and part 4 shows where.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Copy the secret key
&lt;/h2&gt;

&lt;p&gt;In Stripe, open &lt;strong&gt;Developers&lt;/strong&gt; , &lt;strong&gt;API keys&lt;/strong&gt; , and copy the &lt;strong&gt;Secret key&lt;/strong&gt;. In test mode it starts with &lt;code&gt;sk_test_&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Add the four variables
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;a href="https://console.light-cloud.com" rel="noopener noreferrer"&gt;Light Cloud console&lt;/a&gt;, open the app, then &lt;strong&gt;Production&lt;/strong&gt; , &lt;strong&gt;Settings&lt;/strong&gt; , and click &lt;strong&gt;Edit&lt;/strong&gt; next to &lt;strong&gt;Environment Variables&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add:&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;STRIPE_SECRET_KEY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the &lt;code&gt;sk_test_&lt;/code&gt; key from step 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;STRIPE_WEBHOOK_SECRET&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the &lt;code&gt;whsec_&lt;/code&gt; secret from step 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;STRIPE_PRICE_PRO&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the Pro price ID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;STRIPE_PRICE_BUSINESS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the Business price ID&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdrj48b3al4vem3ix4iea.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdrj48b3al4vem3ix4iea.webp" alt="The Production editor with four new rows, STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET hidden, STRIPE_PRICE_PRO and STRIPE_PRICE_BUSINESS, Save highlighted" width="799" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The values in my screenshots are fake samples. Yours come from your own Stripe sandbox.&lt;/p&gt;

&lt;p&gt;Billing switches on only when all four are set. Saving deploys the app again. &amp;lt;!-- VERIFY: "In my run it was live N seconds later." --&amp;gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Upgrade with a test card
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the app, open &lt;strong&gt;Settings&lt;/strong&gt; , &lt;strong&gt;Billing&lt;/strong&gt; , and click &lt;strong&gt;Upgrade to Pro&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Stripe Checkout opens. Enter &lt;code&gt;4242 4242 4242 4242&lt;/code&gt;, any future expiry date, any three-digit CVC and any name.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Subscribe&lt;/strong&gt;.
&amp;lt;!-- IMAGE: s3-04-checkout.webp, Stripe Checkout with the test card filled in (light only) --&amp;gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Stripe sends you back to the billing page, which now shows &lt;strong&gt;Pro&lt;/strong&gt;. &amp;lt;!-- VERIFY: exact confirmation text on the billing page after ?upgraded --&amp;gt;&lt;/p&gt;

&lt;p&gt;In Stripe, open the webhook endpoint. Each event shows a &lt;code&gt;200&lt;/code&gt; response from your app. If one shows an error, the troubleshooting section below lists the usual causes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Open the customer portal
&lt;/h2&gt;

&lt;p&gt;Click &lt;strong&gt;Manage billing in Stripe&lt;/strong&gt;. Stripe's customer portal opens, where the workspace owner can switch to Business, update the card, see invoices or cancel. Cancel the test subscription now. After the webhook arrives, the billing page shows Free again. &amp;lt;!-- VERIFY: whether cancel is immediate or at period end in the portal's default settings --&amp;gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Who can pay
&lt;/h2&gt;

&lt;p&gt;Subscriptions belong to the workspace, not to the person who pays. Only the workspace's owners can upgrade or open &lt;strong&gt;Manage billing in Stripe&lt;/strong&gt;. Admins and members see the plan and its usage, but can't change it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;p&gt;Open the webhook endpoint in Stripe first. It lists every delivery with your app's response.&lt;/p&gt;

&lt;h3&gt;
  
  
  The webhook shows 400 with a signature error
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;STRIPE_WEBHOOK_SECRET&lt;/code&gt; doesn't belong to this endpoint. Each endpoint has its own signing secret. Copy the one from this endpoint and save the variable again. &amp;lt;!-- VERIFY: exact error text in the app logs --&amp;gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The payment worked, but the plan didn't change
&lt;/h3&gt;

&lt;p&gt;The webhook isn't reaching the app. Check that the endpoint URL ends with &lt;code&gt;/api/auth/stripe/webhook&lt;/code&gt; and that the four events are selected.&lt;/p&gt;

&lt;h3&gt;
  
  
  The billing page says billing isn't available yet
&lt;/h3&gt;

&lt;p&gt;One of the four Stripe variables is missing or empty. Check all four are on the &lt;strong&gt;Production&lt;/strong&gt; environment, then let the redeploy finish.&lt;/p&gt;

&lt;h3&gt;
  
  
  No such price
&lt;/h3&gt;

&lt;p&gt;A price ID was copied from live mode, or the other way round. Test mode and live mode have separate prices. Copy the IDs while the dashboard shows test mode.&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>tutorial</category>
      <category>saas</category>
    </item>
    <item>
      <title>Microservices Without Kubernetes</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Sun, 22 Nov 2026 17:26:04 +0000</pubDate>
      <link>https://dev.to/lightcloud/microservices-without-kubernetes-22kc</link>
      <guid>https://dev.to/lightcloud/microservices-without-kubernetes-22kc</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F143rhkpbnyufmmll50f3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F143rhkpbnyufmmll50f3.webp" alt="Microservices Without Kubernetes" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For microservices without Kubernetes, Light Cloud comes first on 4.5 of 6: five quiet services and a Postgres database are $5 a month. Railway and Render follow on 4, Railway ahead on the tiebreak, the idle bill, at about $16 against $41.30. Railway is the better pick when your services call each other often, because it has a private network and Light Cloud doesn't, and Render keeps the whole system in one file.&lt;/p&gt;

&lt;p&gt;We make Light Cloud, one of the nine platforms below. Here's the scoring first, so you can check every point.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we ranked
&lt;/h2&gt;

&lt;p&gt;Kubernetes gives a microservices system a lot, and &lt;a href="https://blog.light-cloud.com/kubernetes/kubernetes-alternatives" rel="noopener noreferrer"&gt;the alternatives to it&lt;/a&gt; each give back a different part. For a small team I counted six things that decide whether a platform works for a system of services rather than a single app:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A mostly idle system costs under $10 a month.&lt;/li&gt;
&lt;li&gt;Each service adds instances under load by itself.&lt;/li&gt;
&lt;li&gt;A branch gets a preview of the whole system, built in.&lt;/li&gt;
&lt;li&gt;Services call each other privately.&lt;/li&gt;
&lt;li&gt;The first deploy needs no IAM, no registry and no required config file.&lt;/li&gt;
&lt;li&gt;Logs are kept at least 7 days without an add-on.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A platform gets one point when it does the thing on its cheapest paid plan, half a point when it needs a pricier plan or comes with a real catch, and none when it's missing or needs your own CI scripts. Ties go to the lower idle bill.&lt;/p&gt;

&lt;p&gt;The reference system is five small services (512 MB or the nearest size) and one small managed Postgres with 1 GB of storage, each service getting about 300 requests a day. Prices are list prices from the vendors' own pages, checked on 2026-10-13 and again on 2026-11-02 for Railway, Fly.io and Koyeb, in US dollars, US regions where they vary. Railway's idle bill is my estimate, because Railway bills the memory a running service holds and publishes no idle number: I assumed what a small Node service and Postgres usually hold, about 250 MB per service and 200 MB for the database. The Light Cloud call limit is measured: I ran two services in one workspace on 2026-10-13 and had one call the other at rising rates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ranking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Score of 6&lt;/th&gt;
&lt;th&gt;Idle system a month&lt;/th&gt;
&lt;th&gt;Calls between services&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Light Cloud&lt;/td&gt;
&lt;td&gt;4.5&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;Public URLs, about 10 a second per caller&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Railway&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;about $16 (estimate)&lt;/td&gt;
&lt;td&gt;Private network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Render&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;$41.30&lt;/td&gt;
&lt;td&gt;Private network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Google Cloud Run&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;about $9&lt;/td&gt;
&lt;td&gt;Signed tokens; private needs a VPC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;DigitalOcean App Platform&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;$32&lt;/td&gt;
&lt;td&gt;Internal network by name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Fly.io&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;$56.73&lt;/td&gt;
&lt;td&gt;Private network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Koyeb&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;$62.66&lt;/td&gt;
&lt;td&gt;Service mesh (not on Free)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;AWS ECS Express Mode&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;about $72&lt;/td&gt;
&lt;td&gt;Service Connect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;Heroku&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;td&gt;Public URLs outside Private Spaces&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One point per criterion, half a point for a pricier plan or a catch. Five small services and one managed Postgres with 1 GB, about 300 requests a day per service. Vendor pricing pages and docs checked 2026-10-13, US dollars; Light Cloud call limit measured the same day. Railway's idle bill assumes about 250 MB of memory per service and 200 MB for Postgres.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Light Cloud
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a few services that are idle most of the day and call each other only now and then.&lt;/p&gt;

&lt;p&gt;4.5 points. Five server apps and a shared Postgres fit the $5 Lite plan, with about $4.50 of the $5 of included usage spent, because every service is &lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;usage-based hosting that scales to zero&lt;/a&gt; and quiet ones use about $0.10 a month (&lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Each app scales on its own from zero up to its instance limit, 3 on Lite and 10 on Starter. Connecting a repository and picking a folder is the whole first deploy; &lt;a href="https://light-cloud.com/deployments" rel="noopener noreferrer"&gt;git push deploys&lt;/a&gt; do the rest, and runtime logs stay searchable for 7 days.&lt;/p&gt;

&lt;p&gt;The half point is the preview. A push to a new branch gives every app on the repository its own &lt;a href="https://light-cloud.com/previews" rel="noopener noreferrer"&gt;preview environment for every branch&lt;/a&gt;, with one pull request comment per app. Those environments still use the production database and call production URLs until you give them their own variables, which &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-5-branches-and-rollback" rel="noopener noreferrer"&gt;part 5 of our series&lt;/a&gt; walks through.&lt;/p&gt;

&lt;p&gt;The zero is private calls, and I measured how much it matters. Services talk over public HTTPS through the same edge as your visitors. One service calling another at 10 requests a second ran clean for 20 seconds; at 15 a second, every call after about ten seconds came back 429, and the block lasted about ten seconds. The limit counts calls to all your services together.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Railway
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; services that call each other a lot and need a private network and full previews from day one.&lt;/p&gt;

&lt;p&gt;4 points. Services in a project share an encrypted private network with internal DNS, so service-to-service calls never meet a public limit. A pull request environment is an isolated copy of every service in the project with its own private network, and a beta option deploys only the services a PR touches (&lt;a href="https://docs.railway.com/environments" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). Deploys come from the repository, and the Log Explorer searches the whole environment, kept 7 days on Hobby.&lt;/p&gt;

&lt;p&gt;One zero is autoscaling: Railway scales each service up to the plan's CPU and memory limits, but extra replicas are set by hand (&lt;a href="https://docs.railway.com/deployments/scaling" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). The other is the bill. Hobby is $5 or the memory and CPU your services use, whichever is more (&lt;a href="https://docs.railway.com/pricing/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;). At about 250 MB per service and 200 MB for Postgres, that's $14.50 of memory, about $1 of CPU and $0.15 for a 1 GB volume, so the idle system is about $16, over the $10 line. It would fit under $10 only if each service held about 0.1 GB. One more thing that's new: since June 2026 a single &lt;code&gt;.railway/railway.ts&lt;/code&gt; file can describe the whole project, applied through the CLI with a plan step, and the old per-service &lt;code&gt;railway.json&lt;/code&gt; stops being read on 2026-12-01.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Render
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; the whole system, wiring included, in one reviewed render.yaml.&lt;/p&gt;

&lt;p&gt;4 points. Services in a region share a private network, deploys come from the repository with nothing else required, and logs are kept 7 days on Hobby. A Blueprint describes services, databases and environment groups in one YAML file, and a service can read another service's host or a database's connection string with &lt;code&gt;fromService&lt;/code&gt; and &lt;code&gt;fromDatabase&lt;/code&gt; (&lt;a href="https://render.com/docs/blueprint-spec" rel="noopener noreferrer"&gt;spec&lt;/a&gt;). No other platform here keeps the wiring in the same file.&lt;/p&gt;

&lt;p&gt;Two half points, both for the same reason: autoscaling and full-system preview environments need the Pro workspace at $25 a month, and previews need that Blueprint. The idle bill scores zero, because instances are fixed: five $7 Starter services and the $6 Postgres with 1 GB come to $41.30 (&lt;a href="https://render.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), the same whether anyone calls them or not.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Google Cloud Run
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams already on Google Cloud who want every service to scale to zero at raw prices.&lt;/p&gt;

&lt;p&gt;3.5 points. Each service scales by itself and to zero by default (&lt;a href="https://cloud.google.com/run/docs/about-instance-autoscaling" rel="noopener noreferrer"&gt;docs&lt;/a&gt;), five quiet services fit the free tier, and Cloud SQL's smallest instance plus 10 GiB brings the system to about $9.24. Logs go to Cloud Logging, with 50 GiB a month free and 30 days of storage. Light Cloud runs on Cloud Run, so this is the engine without the setup done for you.&lt;/p&gt;

&lt;p&gt;The setup is where the points go. You need a billing account and IAM before the first deploy. Calls between services in one region have no networking charge, but private services check a Google-signed ID token on every call, and an internal-only service needs the caller routed through a VPC: half a point. A preview per branch means tagging a no-traffic revision of each service from your own CI, so zero. &lt;code&gt;gcloud run compose up&lt;/code&gt; is generally available, but it turns a Compose file into one service with several containers, &lt;a href="https://cloud.google.com/run/docs/deploy-run-compose" rel="noopener noreferrer"&gt;capped at one instance&lt;/a&gt; by default.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. DigitalOcean App Platform
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a busy system on a budget, described in one app spec.&lt;/p&gt;

&lt;p&gt;3 points. One app spec holds all five services and the database, components reach each other by name over the app's internal network, and the first deploy needs nothing beyond the repository. The official GitHub Action has a pull request mode that deploys the whole spec as a new app pointed at the branch (&lt;a href="https://github.com/digitalocean/app_action" rel="noopener noreferrer"&gt;action&lt;/a&gt;): half a point, because it's a workflow you add.&lt;/p&gt;

&lt;p&gt;Autoscaling also gets half: it needs sizes from $12, works only for components that receive outside traffic, and can't be combined with scale to zero. Logs score zero, since runtime logs aren't kept unless you forward them (&lt;a href="https://docs.digitalocean.com/products/app-platform/how-to/view-logs/" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). The bill is $32, five $5 containers and a $7 development database, idle or busy.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Fly.io
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; services that must run close to users in several regions.&lt;/p&gt;

&lt;p&gt;3 points. Every organization gets a private WireGuard network across regions, logs are searchable for 7 days, and machines can stop when idle. That idle stop gets half a point as autoscaling: the proxy starts and stops machines you've already created and never adds new ones, and scaling on other metrics means running a separate autoscaler app (&lt;a href="https://docs.fly.io/launch/autostop-autostart" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). Each service also gets its own fly.toml and a CLI deploy, another half.&lt;/p&gt;

&lt;p&gt;Previews score zero: Fly's GitHub Action deploys one app per pull request, so five services need five workflows wired together. The idle system is $56.73: five 512 MB machines at $3.69 each, and the smallest Managed Postgres at $38 plus $0.28 for 1 GB (&lt;a href="https://docs.fly.io/postgres" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). And an internal service only sleeps if its callers use a Flycast address, since plain &lt;code&gt;.internal&lt;/code&gt; traffic skips the proxy.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Koyeb
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; public services that should autoscale and sleep, for a team that wants ten seats included.&lt;/p&gt;

&lt;p&gt;3 points. Each service autoscales on CPU, memory, requests per second or connections, with a minimum that can be zero (&lt;a href="https://www.koyeb.com/docs/run-and-scale/autoscaling" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). Services reach each other by private DNS name across apps, though Free instances are left out of that mesh. Deploys come from the repository with nothing else required.&lt;/p&gt;

&lt;p&gt;The catch with sleep is that only services exposed to the internet can scale to zero, so internal services in a microservices system stay up. Previews score zero, since Koyeb's guide builds them from GitHub Actions. Log retention isn't published, so I scored that zero too. New accounts start on Pro at $29 with $10 of compute; five 512 MB eco-micro instances at $2.68 and Postgres at $29.76 plus $0.50 for 1 GB bring the system to $62.66.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. AWS ECS Express Mode
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; AWS shops that want Fargate, autoscaling and a shared load balancer set up for them.&lt;/p&gt;

&lt;p&gt;3 points. Express Mode creates the Fargate service, a load balancer with TLS, autoscaling on utilization or traffic, and monitoring, and it shares one load balancer across services (&lt;a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/express-service-overview.html" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). Service Connect lets services call each other by short name at no extra charge, though you pay for the proxy container it adds to every task. Logs go to CloudWatch.&lt;/p&gt;

&lt;p&gt;The first deploy needs a task execution role, an infrastructure role and an image in a registry, so zero there, and there are no previews. Five of the smallest Fargate tasks are about $8.89 each a month, the load balancer about $16.20 and the smallest RDS Postgres about $11.52 (&lt;a href="https://aws.amazon.com/fargate/pricing/" rel="noopener noreferrer"&gt;Fargate pricing&lt;/a&gt;), about $72 before storage and usage charges.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Heroku
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams already on Heroku who want flat prices and can live without private calls.&lt;/p&gt;

&lt;p&gt;2 points. The first deploy is still the classic &lt;code&gt;git push&lt;/code&gt;, which earns its point. Five Basic dynos and an Essential-0 database are $40 a month (&lt;a href="https://www.heroku.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Autoscaling exists from Performance-M dynos at $250 a month each, half a point, and private networking only inside Private Spaces, for Heroku Enterprise and verified Teams, another half.&lt;/p&gt;

&lt;p&gt;Each HTTP service is its own app, because only the web process type gets router traffic. That makes review apps a per-service feature: a pull request on a five-service system means five pipelines and five review apps, wired by config vars you manage. And the built-in log keeps the latest 1,500 lines, so anything longer needs an add-on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the others beat us
&lt;/h2&gt;

&lt;p&gt;Private calls, first and most. Railway, Render, Fly.io, DigitalOcean, Koyeb and ECS let services talk on a private network; ours go out and back through the edge at about 10 calls a second per caller. If your system is a gateway in front of busy services, that limit decides it, and Railway or Render is the answer.&lt;/p&gt;

&lt;p&gt;Railway also beats us on previews: its pull request environments copy every service with its own network, where ours start out pointed at production. Render, DigitalOcean and now Railway describe the whole system in one file, and we have no manifest at all. Background workers run on Render and DigitalOcean, Railway has cron, and we have neither. Once services are busy around the clock, the fixed $5 to $7 instances elsewhere beat our always-on price of about $52.&lt;/p&gt;

&lt;p&gt;What we do better is the quiet system and the first hour. Five services that wait for traffic cost $0.50 of usage here, the first deploy needs no file, and every branch gets its own URLs. &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-2-connect-services" rel="noopener noreferrer"&gt;Connecting the services&lt;/a&gt; takes CORS and a shared secret, which our series shows. If that trade suits you, &lt;a href="https://light-cloud.com" rel="noopener noreferrer"&gt;microservices without Kubernetes&lt;/a&gt; can be five folders in one repository and one $5 plan, with &lt;a href="https://light-cloud.com/observability" rel="noopener noreferrer"&gt;logs and metrics&lt;/a&gt; for each.&lt;/p&gt;

&lt;p&gt;Which of the six would you give up first?&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>microservices</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>SaaS Part 2: Send Sign-up Emails With Resend</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Sat, 21 Nov 2026 09:00:00 +0000</pubDate>
      <link>https://dev.to/lightcloud/saas-part-2-send-sign-up-emails-with-resend-1ba8</link>
      <guid>https://dev.to/lightcloud/saas-part-2-send-sign-up-emails-with-resend-1ba8</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzyr2s1rgyuf0zv8ifzm6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzyr2s1rgyuf0zv8ifzm6.webp" alt="SaaS Part 2: Send Sign-up Emails With Resend" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To send sign-up emails from a SaaS on Light Cloud, verify your domain in &lt;a href="https://resend.com" rel="noopener noreferrer"&gt;Resend&lt;/a&gt;, create an API key, and add two environment variables to the app: &lt;code&gt;RESEND_API_KEY&lt;/code&gt; and &lt;code&gt;EMAIL_FROM&lt;/code&gt;. Saving redeploys the app, and from then on verification, password reset and invitation emails reach real inboxes. New accounts must confirm their email address before they can sign in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will build
&lt;/h2&gt;

&lt;p&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-1-deploy" rel="noopener noreferrer"&gt;part 1&lt;/a&gt;, now sending its own emails:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Confirm your email&lt;/strong&gt; , sent after sign-up;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reset your password&lt;/strong&gt; , from the &lt;strong&gt;Forgot password&lt;/strong&gt; page;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invitations&lt;/strong&gt; , when you invite a teammate to a workspace;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Welcome&lt;/strong&gt; , sent with the verification email when an account is created.&lt;/p&gt;


&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The app from &lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-1-deploy" rel="noopener noreferrer"&gt;part 1&lt;/a&gt;, running.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A &lt;a href="https://resend.com" rel="noopener noreferrer"&gt;Resend&lt;/a&gt; account. The free plan is enough for this tutorial. &amp;lt;!-- VERIFY: the free plan limits on resend.com/pricing on the run date --&amp;gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A domain you can add DNS records to. I used &lt;code&gt;example.com&lt;/code&gt;, a stand-in for yours: wherever you see it, type your own domain. A subdomain is fine too, and it keeps the records away from your main domain's email.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Add the domain to Resend
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In Resend, open &lt;strong&gt;Domains&lt;/strong&gt; and click &lt;strong&gt;Add Domain&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter the domain, here &lt;code&gt;example.com&lt;/code&gt;, and pick the region closest to your users. &amp;lt;!-- VERIFY: region list and the one picked --&amp;gt;&lt;/li&gt;
&lt;li&gt;Resend shows the DNS records to add.
&amp;lt;!-- IMAGE: s2-01-resend-records.webp, the Resend DNS records table (light + dark if Resend has a dark theme) --&amp;gt;
## Step 2: Add the DNS records&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At your DNS provider, add each record exactly as Resend shows it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MX&lt;/td&gt;
&lt;td&gt;&lt;code&gt;send&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;feedback-smtp.....amazonses.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TXT&lt;/td&gt;
&lt;td&gt;&lt;code&gt;send&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;v=spf1 include:amazonses.com ~all&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TXT&lt;/td&gt;
&lt;td&gt;&lt;code&gt;resend._domainkey&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;p=MIGfMA0...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Back in Resend, click &lt;strong&gt;Verify DNS Records&lt;/strong&gt;. The domain shows &lt;strong&gt;Verified&lt;/strong&gt; once the records are found. &amp;lt;!-- VERIFY: "In my run that took N minutes." --&amp;gt;&lt;/p&gt;

&lt;p&gt;You can check a record yourself from the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;$ &lt;span class="n"&gt;nslookup&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;TXT&lt;/span&gt; &lt;span class="n"&gt;resend&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_domainkey&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="no"&gt;VERIFY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;trimmed&lt;/span&gt; &lt;span class="n"&gt;real&lt;/span&gt; &lt;span class="n"&gt;output&lt;/span&gt;


&lt;span class="no"&gt;PS&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;nslookup&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;TXT&lt;/span&gt; &lt;span class="n"&gt;resend&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_domainkey&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="no"&gt;VERIFY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;trimmed&lt;/span&gt; &lt;span class="n"&gt;real&lt;/span&gt; &lt;span class="n"&gt;output&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Create an API key
&lt;/h2&gt;

&lt;p&gt;In Resend, open &lt;strong&gt;API Keys&lt;/strong&gt; , click &lt;strong&gt;Create API Key&lt;/strong&gt; , name it &lt;code&gt;saas-production&lt;/code&gt;, and give it &lt;strong&gt;Sending access&lt;/strong&gt; to your domain only. Copy the key. It starts with &lt;code&gt;re_&lt;/code&gt; and Resend shows it only once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Add the variables to the app
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;a href="https://console.light-cloud.com" rel="noopener noreferrer"&gt;Light Cloud console&lt;/a&gt;, open the app, then &lt;strong&gt;Production&lt;/strong&gt; , &lt;strong&gt;Settings&lt;/strong&gt; , and click &lt;strong&gt;Edit&lt;/strong&gt; next to &lt;strong&gt;Environment Variables&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add two variables:&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;RESEND_API_KEY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the key from step 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;EMAIL_FROM&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Rota Planner &amp;lt;hello@example.com&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzxcyo3t0h1hcmi1qz3v8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzxcyo3t0h1hcmi1qz3v8.webp" alt="The Production editor with EMAIL_FROM changed to Rota Planner hello@example.com and a new row RESEND_API_KEY with its value hidden, Save highlighted" width="800" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The key in my screenshots is a fake sample. Yours starts with &lt;code&gt;re_&lt;/code&gt; too.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;EMAIL_FROM&lt;/code&gt; is the sender people see. The part in angle brackets must be an address on the domain you verified. The name before it can be anything.&lt;/p&gt;

&lt;p&gt;Saving deploys the app again. &amp;lt;!-- VERIFY: "In my run it was live N seconds later." --&amp;gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Sign up with a new address
&lt;/h2&gt;

&lt;p&gt;Open the app in a private window and sign up with an email address you can read. Instead of the dashboard, you now see a page asking you to confirm your email:&lt;/p&gt;

&lt;p&gt;Open the email and click the link. You're signed in and go on to onboarding.&lt;/p&gt;

&lt;p&gt;If the email doesn't arrive, open &lt;strong&gt;Emails&lt;/strong&gt; in Resend. Every email the app sent is listed there, with its status.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Try a password reset
&lt;/h2&gt;

&lt;p&gt;Sign out, click &lt;strong&gt;Forgot password&lt;/strong&gt; on the sign-in page, and enter the same address. The email says the link works for one hour. Open it, choose a new password, and sign in with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;p&gt;Open the app's &lt;strong&gt;Logs&lt;/strong&gt; tab first. A failed email logs a line that starts with &lt;code&gt;Email to&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Email to ... failed: The ... domain is not verified
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;EMAIL_FROM&lt;/code&gt; uses an address on a domain that Resend hasn't verified yet. Wait for &lt;strong&gt;Verified&lt;/strong&gt; in Resend, or fix the address. &amp;lt;!-- VERIFY: exact Resend error text --&amp;gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Email to ... failed: API key is invalid
&lt;/h3&gt;

&lt;p&gt;The key was copied incompletely, or it was deleted in Resend. Create a new key and replace &lt;code&gt;RESEND_API_KEY&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The email arrives in spam
&lt;/h3&gt;

&lt;p&gt;New domains have no sending history yet. Add a DMARC record (&lt;code&gt;_dmarc&lt;/code&gt;, TXT, &lt;code&gt;v=DMARC1; p=none;&lt;/code&gt;), send a few emails to yourself and mark them as not spam.&lt;/p&gt;

&lt;h3&gt;
  
  
  Emails still show up in the logs instead of being sent
&lt;/h3&gt;

&lt;p&gt;The app reads its variables when it starts. Check that &lt;code&gt;RESEND_API_KEY&lt;/code&gt; is set on the &lt;strong&gt;Production&lt;/strong&gt; environment and that the deploy after saving finished.&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>tutorial</category>
      <category>saas</category>
    </item>
    <item>
      <title>Free Hosting for Students and Hackathons</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Fri, 20 Nov 2026 16:46:04 +0000</pubDate>
      <link>https://dev.to/lightcloud/free-hosting-for-students-and-hackathons-3l38</link>
      <guid>https://dev.to/lightcloud/free-hosting-for-students-and-hackathons-3l38</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs1mfx74cx4ktilv677qk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs1mfx74cx4ktilv677qk.webp" alt="Free Hosting for Students and Hackathons" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For a student project with an app server, Light Cloud's free plan runs the most with no card: the frontend, a Flask, Express or Spring Boot server as a container, a link for every branch and a password on the demo. What it lacks is a database, so pair it with Neon's free Postgres. Cloudflare runs as much if your code is written for Workers, Railway's no-card trial is made for a hackathon weekend, and GitHub Pages is still the simplest home for a static portfolio.&lt;/p&gt;

&lt;p&gt;We make Light Cloud, the first row below, so here is how the rows were scored.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we ranked
&lt;/h2&gt;

&lt;p&gt;A class project and a hackathon app need the same five things: a static frontend, the app server your course or template gives you running unchanged (Flask, Express, Spring Boot), a database, a link for every branch so teammates and reviewers can open each other's work, and a way to keep a demo private until judging or grading.&lt;/p&gt;

&lt;p&gt;Every platform here is free with no card on file, according to its own pages, and has no end date, checked on 2026-10-13. Rows are ordered by how many of the five they cover. When two cover the same number, the one whose missing piece is cheapest to add from the same vendor ranks higher; a free plan from another company doesn't count, because that's a second vendor. Light Cloud and Cloudflare tie on that too, at $5 a month each, so the order between them is a judgment call: Light Cloud is first because its free plan runs the app server your course hands you unchanged, and Cloudflare's free plan doesn't.&lt;/p&gt;

&lt;p&gt;Student credits that expire, like Azure for Students or the Heroku offer in the GitHub Student Developer Pack, get their own section below, because "free for twelve months" and "free" aren't the same promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ranking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Free allowance&lt;/th&gt;
&lt;th&gt;Your app server, unchanged&lt;/th&gt;
&lt;th&gt;Database&lt;/th&gt;
&lt;th&gt;Of the five&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Light Cloud&lt;/td&gt;
&lt;td&gt;$1 of usage a month&lt;/td&gt;
&lt;td&gt;Any language, as a container&lt;/td&gt;
&lt;td&gt;None on Free; from $5 on Lite&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Cloudflare&lt;/td&gt;
&lt;td&gt;100,000 Worker requests a day&lt;/td&gt;
&lt;td&gt;Workers code only; containers need Workers Paid&lt;/td&gt;
&lt;td&gt;D1, SQLite&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Railway&lt;/td&gt;
&lt;td&gt;$1 of credit a month, after a $5 trial&lt;/td&gt;
&lt;td&gt;Any language, inside $1 a month&lt;/td&gt;
&lt;td&gt;Postgres, inside $1 a month&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Render&lt;/td&gt;
&lt;td&gt;750 free instance hours a month&lt;/td&gt;
&lt;td&gt;Yes, sleeps after 15 minutes&lt;/td&gt;
&lt;td&gt;Postgres, deleted after 30 days&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Firebase&lt;/td&gt;
&lt;td&gt;Spark plan quotas&lt;/td&gt;
&lt;td&gt;Not on the free plan&lt;/td&gt;
&lt;td&gt;Firestore, NoSQL&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Neon&lt;/td&gt;
&lt;td&gt;100 CU-hours per project a month&lt;/td&gt;
&lt;td&gt;JavaScript functions only&lt;/td&gt;
&lt;td&gt;Postgres, 1 GB per project&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;GitHub Pages&lt;/td&gt;
&lt;td&gt;One site plus unlimited project sites&lt;/td&gt;
&lt;td&gt;Static files only&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From each vendor's own pricing and docs pages, checked 2026-10-13. "Of the five": static frontend, app server unchanged, database, a link for every branch, a private demo.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Light Cloud
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; class projects and hackathon apps with a real app server.&lt;/p&gt;

&lt;p&gt;The Free plan is $0 with no card: unlimited static sites, 3 server apps and a preview URL for every branch, with $1 of usage a month (&lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Its server apps are containers, so the course's Flask app or the template's Express API runs as it is; we &lt;a href="https://light-cloud.com/frameworks" rel="noopener noreferrer"&gt;host Flask, Spring Boot or Express apps&lt;/a&gt; and detect the runtime from the project. &lt;a href="https://blog.light-cloud.com/tutorials/deploy-a-flask-app" rel="noopener noreferrer"&gt;The Flask tutorial&lt;/a&gt; does it on the free plan. A quiet API uses about ten cents of the $1, because it scales to zero between requests.&lt;/p&gt;

&lt;p&gt;Two things matter for a hackathon. Each branch gets its own URL, so &lt;a href="https://light-cloud.com/previews" rel="noopener noreferrer"&gt;branch preview links&lt;/a&gt; are there for teammates without anyone asking. And a visitor password works on any environment on the free plan, which keeps a demo private until the judges see it; &lt;a href="https://blog.light-cloud.com/tutorials/password-protect-a-staging-site" rel="noopener noreferrer"&gt;the staging tutorial&lt;/a&gt; takes five minutes. If you build with an agent, you can &lt;a href="https://light-cloud.com/deploy-with-ai" rel="noopener noreferrer"&gt;deploy with AI&lt;/a&gt; and let it create the account from your email and a device code, no form.&lt;/p&gt;

&lt;p&gt;What's missing, plainly. There is no database on Free; they start on Lite at $5 a month. Only one person can be in a free workspace. Apps live on a light-cloud.io address with a small "by Light Cloud" link, and when the $1 runs out, server apps pause until next month while static sites keep serving. Nothing is ever billed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Cloudflare
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; JavaScript projects written for Workers.&lt;/p&gt;

&lt;p&gt;No card is needed (&lt;a href="https://workers.cloudflare.com/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;), and the free plan covers a lot: 100,000 Worker requests a day, unlimited static asset requests, unlimited preview deployments and up to 100 custom domains per Pages project (&lt;a href="https://developers.cloudflare.com/pages/platform/limits/" rel="noopener noreferrer"&gt;limits&lt;/a&gt;). D1 is a free database, SQLite rather than Postgres. Cloudflare Access can put previews behind a sign-in, and it is &lt;a href="https://www.cloudflare.com/sase/products/access/" rel="noopener noreferrer"&gt;free for teams under 50 users&lt;/a&gt;. Teammates cost nothing either.&lt;/p&gt;

&lt;p&gt;The missing piece is the app server. A Worker is code written for Cloudflare's runtime, so a Flask or Spring Boot server doesn't run on it unchanged; that needs a container, and containers need Workers Paid, a $5 minimum with a card. On the free plan, a Worker also gets 10 ms of CPU per request.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Railway
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a hackathon weekend.&lt;/p&gt;

&lt;p&gt;The trial lasts 30 days with $5 of credit and &lt;a href="https://railway.com/pricing" rel="noopener noreferrer"&gt;needs no card&lt;/a&gt;. In that month Railway runs the whole app: the server in any language, a Postgres database and a temporary environment for every pull request, deleted when it closes (&lt;a href="https://docs.railway.com/environments" rel="noopener noreferrer"&gt;environments&lt;/a&gt;). For a weekend, it is hard to beat. Connect a GitHub account Railway can verify, or you get the Limited Trial, with &lt;a href="https://docs.railway.com/pricing/free-trial" rel="noopener noreferrer"&gt;restricted outbound network access&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;After the trial, the Free plan gives $1 of credit a month, one project and three services, and everything has to fit in that dollar. RAM costs $10 per GB a month, so an app and a database that stay awake use it up fast, and Railway's docs don't say what stops when the Free plan's credit runs out. The missing piece is the private demo: gating a service behind a login needs Railway's $5,000-a-month tier, which is why it ranks below the two rows with the same score.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Render
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a free web service for a course project.&lt;/p&gt;

&lt;p&gt;Render's free tier &lt;a href="https://render.com/docs/your-first-deploy" rel="noopener noreferrer"&gt;needs no payment&lt;/a&gt; and runs a real web service, with free static sites and a preview of the service for each pull request. Free web services spin down after 15 minutes without traffic and take about a minute to wake (&lt;a href="https://render.com/docs/free" rel="noopener noreferrer"&gt;free tier docs&lt;/a&gt;), so open the demo a minute early.&lt;/p&gt;

&lt;p&gt;The database is the problem for anything longer than a month. A free Render Postgres database expires 30 days after it is created and is deleted after a 14-day grace period. Render also says not to use free instances for production, which a class project usually isn't.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Firebase
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; apps that talk to Firestore from the client.&lt;/p&gt;

&lt;p&gt;The Spark plan needs &lt;a href="https://firebase.google.com/pricing" rel="noopener noreferrer"&gt;no payment method&lt;/a&gt; and includes Hosting, Firestore with 1 GiB of data and 50,000 reads a day, and sign-in. A GitHub Action creates a &lt;a href="https://firebase.google.com/docs/hosting/github-integration" rel="noopener noreferrer"&gt;preview channel for every pull request&lt;/a&gt;, though it talks to your real backend.&lt;/p&gt;

&lt;p&gt;Firestore is a NoSQL document store, so a course that teaches SQL won't map onto it. And there is no server code on Spark: Cloud Functions, App Hosting and, since 2026-02-03, Cloud Storage all need the paid Blaze plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Neon
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; the free Postgres database to pair with a host that has none.&lt;/p&gt;

&lt;p&gt;Neon's Free plan needs &lt;a href="https://neon.com/pricing" rel="noopener noreferrer"&gt;no credit card&lt;/a&gt;: 100 projects, each with 100 CU-hours of compute a month and 1 GB of Postgres. The compute sleeps after 5 idle minutes and wakes in a few hundred milliseconds, and branching is included, 10 branches per project. Hitting a limit suspends the compute until next month; it doesn't delete data.&lt;/p&gt;

&lt;p&gt;Neon runs JavaScript functions now, but it says they are not full-stack app hosting. Use it for the database and host the app somewhere else, which is exactly the gap in row 1.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. GitHub Pages
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; portfolios and static course sites.&lt;/p&gt;

&lt;p&gt;The Student Developer Pack lists it plainly: &lt;a href="https://education.github.com/pack" rel="noopener noreferrer"&gt;one site per account and organization, and unlimited project sites&lt;/a&gt;. Pages is a &lt;a href="https://docs.github.com/en/pages/getting-started-with-github-pages/what-is-github-pages" rel="noopener noreferrer"&gt;static site hosting service&lt;/a&gt; that publishes HTML, CSS and JavaScript from a repository. No server, no database, no per-branch previews. For a portfolio, that's all you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  Student credits that expire
&lt;/h2&gt;

&lt;p&gt;Some of the best student offers have an end date, so they aren't ranked above. On 2026-10-13 the &lt;a href="https://education.github.com/pack" rel="noopener noreferrer"&gt;GitHub Student Developer Pack&lt;/a&gt; listed these for hosting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Azure for Students: no card, for full-time university students, with $100 of credit to use within 12 months, renewable each year while you study (&lt;a href="https://azure.microsoft.com/en-us/free/students" rel="noopener noreferrer"&gt;Azure for Students&lt;/a&gt;). Container Apps and Static Web Apps have free monthly amounts on top. When the credit runs out, the subscription is disabled unless you switch to pay as you go.&lt;/li&gt;
&lt;li&gt;Heroku: $13 of credit a month for 24 months, enough for an Eco dyno and a small Postgres, but &lt;a href="https://www.heroku.com/github-students/" rel="noopener noreferrer"&gt;a card is required&lt;/a&gt; and is charged for anything above the credit.&lt;/li&gt;
&lt;li&gt;Appwrite: six months of the Education plan, with Pro-level resources for two projects (&lt;a href="https://appwrite.io/education" rel="noopener noreferrer"&gt;Appwrite Education&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;MongoDB Atlas: $50 of credit, and free domains for a year from Namecheap, Name.com and .TECH.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Azure's offer covers more than any free plan here, including a database through the credit, if you're willing to set up Azure itself. It ends when you graduate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the others beat us
&lt;/h2&gt;

&lt;p&gt;The database. Railway, Render, Firebase, Neon and Cloudflare all give you one for free in some form, and our free plan gives you none, so the honest setup is two accounts. Teams, too: Cloudflare lets the whole team in for free, while our free workspace holds one person. Railway's trial runs the full stack, database included, for the month a hackathon needs. And Cloudflare's daily limits reset overnight, where ours reset monthly.&lt;/p&gt;

&lt;p&gt;What we do better for students is the server: whatever the course or the template uses, running unchanged, with a link for every branch and a password on the demo, on &lt;a href="https://light-cloud.com" rel="noopener noreferrer"&gt;free hosting for students&lt;/a&gt; that never asks for a card. If you want the details of what happens at the free limits, &lt;a href="https://blog.light-cloud.com/comparisons/free-hosting-no-credit-card" rel="noopener noreferrer"&gt;free hosting without a credit card&lt;/a&gt; compares the worst cases.&lt;/p&gt;

&lt;p&gt;What was your first hackathon project hosted on?&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>hosting</category>
      <category>education</category>
    </item>
    <item>
      <title>SaaS Part 1: Deploy Your App and Database</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Fri, 20 Nov 2026 09:00:00 +0000</pubDate>
      <link>https://dev.to/lightcloud/saas-part-1-deploy-your-app-and-database-3o80</link>
      <guid>https://dev.to/lightcloud/saas-part-1-deploy-your-app-and-database-3o80</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fitvlcrhvzq49en9t1kqp.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fitvlcrhvzq49en9t1kqp.webp" alt="SaaS Part 1: Deploy Your App and Database" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To deploy a SaaS with a database on Light Cloud, fork the &lt;a href="https://github.com/light-cloud-com/tutorial-saas-starter" rel="noopener noreferrer"&gt;tutorial-saas-starter&lt;/a&gt; repository, create a PostgreSQL database, and deploy the repository from GitHub. Then set two environment variables: &lt;code&gt;DATABASE_URL&lt;/code&gt; with the database's connection string, and &lt;code&gt;AUTH_SECRET&lt;/code&gt; with a long random string. The app creates its own tables when it starts, so the first sign-up works straight away, with no email provider or Stripe account yet.&lt;/p&gt;

&lt;p&gt;In my run the app was live 6 minutes after I clicked &lt;strong&gt;Deploy&lt;/strong&gt; , and its first sign-up worked straight away.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will build
&lt;/h2&gt;

&lt;p&gt;A complete SaaS app, live on a Light Cloud URL:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;sign-up, sign-in and password reset;&lt;/li&gt;
&lt;li&gt;teams, called workspaces, with owner, admin and member roles;&lt;/li&gt;
&lt;li&gt;an onboarding stepper after the first sign-up;&lt;/li&gt;
&lt;li&gt;an admin panel at &lt;code&gt;/admin&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;a pricing page and billing, which stay switched off until part 3.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ehu9fxhiz6u0scao47z.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ehu9fxhiz6u0scao47z.webp" alt="The Rota Planner dashboard on Light Cloud, signed in as Sarah Jones in the Bristol Care Homes workspace, with the Get started checklist and the Free plan" width="800" height="657"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is part 1 of &lt;strong&gt;Start a SaaS on Light Cloud&lt;/strong&gt;. The series takes the same app all the way to launch:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Deploy your app and database (this part)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-2-email" rel="noopener noreferrer"&gt;Send sign-up emails with Resend&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-3-stripe" rel="noopener noreferrer"&gt;Take payments with Stripe, in test mode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-4-custom-domain" rel="noopener noreferrer"&gt;Add your own domain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-5-staging" rel="noopener noreferrer"&gt;Add a password-protected staging site&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-6-previews" rel="noopener noreferrer"&gt;Preview every pull request&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-7-go-live" rel="noopener noreferrer"&gt;Go live with real payments&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Source code: &lt;a href="https://github.com/light-cloud-com/tutorial-saas-starter" rel="noopener noreferrer"&gt;github.com/light-cloud-com/tutorial-saas-starter&lt;/a&gt;. The app is our &lt;a href="https://github.com/light-cloud-dev/nextjs-saas-starter" rel="noopener noreferrer"&gt;Next.js SaaS Starter Kit&lt;/a&gt;: Next.js 16, React 19, TypeScript, &lt;a href="https://www.better-auth.com/" rel="noopener noreferrer"&gt;Better Auth&lt;/a&gt;, &lt;a href="https://orm.drizzle.team/" rel="noopener noreferrer"&gt;Drizzle ORM&lt;/a&gt;, Tailwind CSS and shadcn/ui.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Light Cloud account on the &lt;strong&gt;Lite&lt;/strong&gt; plan or higher. The Free plan has no databases.&lt;/li&gt;
&lt;li&gt;A &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; account, connected to Light Cloud. &lt;a href="https://blog.light-cloud.com/tutorials/deploy-from-github" rel="noopener noreferrer"&gt;Deploy from GitHub&lt;/a&gt; shows how.&lt;/li&gt;
&lt;li&gt;A terminal with &lt;a href="https://www.openssl.org/" rel="noopener noreferrer"&gt;OpenSSL&lt;/a&gt;, to make a random secret. It comes with macOS and Linux. On Windows, use Git Bash, which comes with &lt;a href="https://git-scm.com/downloads" rel="noopener noreferrer"&gt;Git for Windows&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You don't need Node.js on your laptop for this part. Light Cloud builds the app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Fork the repository
&lt;/h2&gt;

&lt;p&gt;Open &lt;a href="https://github.com/light-cloud-com/tutorial-saas-starter" rel="noopener noreferrer"&gt;github.com/light-cloud-com/tutorial-saas-starter&lt;/a&gt; and click &lt;strong&gt;Fork&lt;/strong&gt; , then &lt;strong&gt;Create fork&lt;/strong&gt;. You get your own copy, so later parts can push changes to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create the database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;a href="https://console.light-cloud.com" rel="noopener noreferrer"&gt;Light Cloud console&lt;/a&gt;, click &lt;strong&gt;New...&lt;/strong&gt; , then &lt;strong&gt;New Database&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Name it &lt;code&gt;saas-db&lt;/code&gt;, keep &lt;strong&gt;Size&lt;/strong&gt; at &lt;strong&gt;Dev&lt;/strong&gt; (a shared instance) and &lt;strong&gt;Storage&lt;/strong&gt; at &lt;strong&gt;1 GB&lt;/strong&gt; , and click &lt;strong&gt;Create database&lt;/strong&gt;. It was ready a few seconds later in my run.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscwius2ktbfwfhe0wafs.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscwius2ktbfwfhe0wafs.webp" alt="The Create page with the Database tile chosen, the name saas-db, Size Dev, Storage 1 GB, Region Belgium, and the Create database button highlighted" width="752" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the &lt;strong&gt;Credentials&lt;/strong&gt; tab. Under &lt;strong&gt;Connection String&lt;/strong&gt; , choose &lt;strong&gt;Connect from: Node.js&lt;/strong&gt; and click &lt;strong&gt;Copy&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F09cssrvvv3ygjgy1657r.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F09cssrvvv3ygjgy1657r.webp" alt="The Credentials tab with the user, password and database name hidden, Connect from Node.js and Copy highlighted" width="800" height="594"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Node.js version of the string already ends with &lt;code&gt;?sslmode=require&amp;amp;uselibpqcompat=true&lt;/code&gt;, which makes the app encrypt its connection, as the database requires. With your own user, password and database name where the dots are, it looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;postgresql://u_••••••:••••••••@saas-db-yourworkspace.db.light-cloud.io:5432/db••••••?sslmode=require&amp;amp;uselibpqcompat=true

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is your &lt;code&gt;DATABASE_URL&lt;/code&gt;. Keep it private, because it contains the password.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Make a session secret
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;AUTH_SECRET&lt;/code&gt; signs sign-in sessions and the links in emails. Any long random string works. Make one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ openssl rand -hex 32
cfd128d18c3df4f1d951527e89d771dc134ad90a77ccf22bbf09dd0a1719f747


$ openssl rand -hex 32
cfd128d18c3df4f1d951527e89d771dc134ad90a77ccf22bbf09dd0a1719f747

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows, run it in Git Bash. Yours will be different: use your own, not this one. Anyone who has it can forge a session, so keep it as private as the database password.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Deploy the app with its variables
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the console, click &lt;strong&gt;New...&lt;/strong&gt; , then &lt;strong&gt;Deploy from GitHub&lt;/strong&gt; , search for &lt;code&gt;tutorial-saas-starter&lt;/code&gt; and pick your fork.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmb4bwiov7dimg1616uoq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmb4bwiov7dimg1616uoq.webp" alt="The repository search with tutorial-saas-starter found and highlighted" width="752" height="528"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Light Cloud reads the repository and shows &lt;strong&gt;Next.js / Fullstack&lt;/strong&gt; , with &lt;strong&gt;SSR mode (like Vercel)&lt;/strong&gt; in the reasons and &lt;strong&gt;Runs on a server&lt;/strong&gt; on the app. The size is &lt;strong&gt;Micro&lt;/strong&gt; (512 MB), and the app scales between 0 and 3 instances.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpi6mig1vefu96rxewtwd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpi6mig1vefu96rxewtwd.webp" alt="The detection banner Next.js Fullstack and the application card with Name, Root directory, Framework Next.js and Size Micro" width="780" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Advanced - build settings, environment variables, domain, scaling&lt;/strong&gt;. Under &lt;strong&gt;Environment variables&lt;/strong&gt; , Light Cloud has already listed every variable from the repository's &lt;code&gt;.env.example&lt;/code&gt;, each with its comment. Fill in three:&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DATABASE_URL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the string from step 2. Replace the &lt;code&gt;localhost&lt;/code&gt; example value that's there&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AUTH_SECRET&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the output from step 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;APP_NAME&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;your product's name. I used &lt;code&gt;Rota Planner&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64a827lfpd5ckpbopfyl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64a827lfpd5ckpbopfyl.webp" alt="The environment variables on the create form: DATABASE_URL and AUTH_SECRET filled with their values hidden, APP_URL empty, APP_NAME set to Rota Planner" width="720" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Leave the others empty. Empty variables aren't sent, and later parts fill in the email and Stripe ones.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Deploy&lt;/strong&gt;. Light Cloud asks &lt;strong&gt;Deploy without these variables?&lt;/strong&gt; and lists the empty ones. They're optional for this app, so click &lt;strong&gt;Deploy anyway&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The console opens the app's &lt;strong&gt;Production&lt;/strong&gt; environment and shows each build stage as it runs. The first build installs the dependencies and runs &lt;code&gt;next build&lt;/code&gt; in a container, which is the slow part: in my run &lt;strong&gt;Building container image&lt;/strong&gt; took most of the 6 minutes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8y58x2hmky0hteiwe7tj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8y58x2hmky0hteiwe7tj.webp" alt="The Production environment while deploying, with the build stages Enabling Cloud APIs, Setting up container registry, Cloning repository and Preparing container done, and Building container image running" width="799" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When it's done, the badge says &lt;strong&gt;Deployed&lt;/strong&gt; and the &lt;strong&gt;URL&lt;/strong&gt; card has your app's address:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisdyo88hw8wy64foua8o.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisdyo88hw8wy64foua8o.webp" alt="The Production overview of tutorial-saas-starter with the Deployed badge and the URL main-tutorial-saas-starter-examples.light-cloud.io" width="800" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When the app starts, it applies the database migrations before Next.js starts. Open the &lt;strong&gt;Logs&lt;/strong&gt; tab and you'll find this line:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsjjtgm23rzwc7jw3tt0d.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsjjtgm23rzwc7jw3tt0d.webp" alt="The Logs tab with the line Database migrations are up to date highlighted, followed by Next.js 16 starting and Ready" width="800" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Sign up
&lt;/h2&gt;

&lt;p&gt;Open your app's URL from the &lt;strong&gt;Overview&lt;/strong&gt; tab. Mine is &lt;code&gt;https://main-tutorial-saas-starter-examples.light-cloud.io&lt;/code&gt;, and yours ends with your workspace's name instead of &lt;code&gt;examples&lt;/code&gt;. The landing page already uses the &lt;code&gt;APP_NAME&lt;/code&gt; you set:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbvcfxbus5i2gtkqq4ja6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbvcfxbus5i2gtkqq4ja6.webp" alt="The Rota Planner landing page: Launch your SaaS this week, not this quarter, with Get started free and See pricing" width="800" height="657"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Get started&lt;/strong&gt; , enter your name, email and a password, and click &lt;strong&gt;Create account&lt;/strong&gt;. I signed up as a test user, Sarah Jones.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs8rhjzbm5fw6n7d911bh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs8rhjzbm5fw6n7d911bh.webp" alt="The Create your account form with Name Sarah Jones, an email address and a hidden password" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The onboarding stepper asks for a workspace name. I used &lt;code&gt;Bristol Care Homes&lt;/code&gt;. Click &lt;strong&gt;Continue&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbgcyp8u3kpn9e0xc6tl1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbgcyp8u3kpn9e0xc6tl1.webp" alt="Onboarding step 1, Name your workspace, with Bristol Care Homes entered" width="800" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It offers to invite teammates. Click &lt;strong&gt;Skip for now&lt;/strong&gt; , then &lt;strong&gt;Go to dashboard&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first account to sign up becomes the admin, so open &lt;code&gt;/admin&lt;/code&gt; now. It lists every user and workspace, and lets you disable a user or sign in as one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkeg4hiz3ivrbgqd8qux5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkeg4hiz3ivrbgqd8qux5.webp" alt="The admin panel listing one user, Sarah Jones (you), with the Admin role, one workspace and joined 18 Nov 2026" width="800" height="238"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The app normally sends a welcome email when someone signs up. It has no email provider yet, so it prints the email to the logs instead. Search the &lt;strong&gt;Logs&lt;/strong&gt; tab for &lt;code&gt;email&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa9cmir6vo5mgjqhb61qr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa9cmir6vo5mgjqhb61qr.webp" alt="The Logs tab searched for email, with the line Not sent, RESEND_API_KEY is not set highlighted" width="800" height="183"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight email"&gt;&lt;code&gt;&lt;span class="k"&gt;[email]&lt;/span&gt; &lt;span class="nc"&gt;Not&lt;/span&gt; &lt;span class="n"&gt;sent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;RESEND_API_KEY&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;To&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;sarah&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jones&lt;/span&gt;@&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="nc"&gt;Subject&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Welcome&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="nc"&gt;Rota&lt;/span&gt; &lt;span class="nc"&gt;Planner&lt;/span&gt;
&lt;span class="nc"&gt;Hi&lt;/span&gt; &lt;span class="nc"&gt;Sarah&lt;/span&gt; &lt;span class="nc"&gt;Jones&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nc"&gt;Thanks&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;signing&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="nc"&gt;Rota&lt;/span&gt; &lt;span class="nc"&gt;Planner&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Your&lt;/span&gt; &lt;span class="n"&gt;dashboard&lt;/span&gt; &lt;span class="n"&gt;has&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;short&lt;/span&gt; &lt;span class="n"&gt;checklist&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="n"&gt;you&lt;/span&gt; &lt;span class="n"&gt;going&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="k"&gt;[email]&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://blog.light-cloud.com/tutorials/start-a-saas-part-2-email" rel="noopener noreferrer"&gt;Part 2&lt;/a&gt; connects Resend, so those emails reach real inboxes and new accounts have to verify their address.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the health endpoint
&lt;/h2&gt;

&lt;p&gt;The app has a health check that also tests the database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ curl https://main-tutorial-saas-starter-examples.light-cloud.io/api/health
{"status":"ok","database":"ok"}


PS&amp;gt; curl.exe https://main-tutorial-saas-starter-examples.light-cloud.io/api/health
{"status":"ok","database":"ok"}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;The app scales to zero: with nobody using it, no instance runs, and the &lt;strong&gt;Warm Instances&lt;/strong&gt; card on the overview says idle is not billed. The price of that is a cold start. My first request after the deploy took 3.1 seconds while an instance started, and the next one 0.6 seconds. &lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;Pricing&lt;/a&gt; lists the plan and the Dev database.&lt;/p&gt;

&lt;h2&gt;
  
  
  How many connections?
&lt;/h2&gt;

&lt;p&gt;Every running instance of the app opens its own pool of database connections. The tutorial repository keeps that pool at 3, in &lt;code&gt;src/lib/db/index.ts&lt;/code&gt;, because a Dev database allows 10 connections per user. Three instances use 9 and leave one for you. If you raise &lt;strong&gt;Max instances&lt;/strong&gt; , lower the pool size to match. &lt;a href="https://blog.light-cloud.com/tutorials/database-metrics-and-connections" rel="noopener noreferrer"&gt;Too many connections?&lt;/a&gt; explains the numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;p&gt;If the app doesn't start, open the &lt;strong&gt;Logs&lt;/strong&gt; tab and look for one of these errors.&lt;/p&gt;

&lt;h3&gt;
  
  
  DATABASE_URL is not set
&lt;/h3&gt;

&lt;p&gt;The variable is missing. Add it under &lt;strong&gt;Production&lt;/strong&gt; , &lt;strong&gt;Settings&lt;/strong&gt; , &lt;strong&gt;Environment Variables&lt;/strong&gt; , and save. Saving deploys the app again.&lt;/p&gt;

&lt;h3&gt;
  
  
  pg_hba.conf rejects connection ... no encryption
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;DATABASE_URL&lt;/code&gt; has no SSL setting. Add &lt;code&gt;?sslmode=require&amp;amp;uselibpqcompat=true&lt;/code&gt; to the end.&lt;/p&gt;

&lt;h3&gt;
  
  
  unable to verify the first certificate
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;DATABASE_URL&lt;/code&gt; ends with &lt;code&gt;?sslmode=require&lt;/code&gt; only. Add &lt;code&gt;&amp;amp;uselibpqcompat=true&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Signing in works, then you're signed out after a redeploy
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;AUTH_SECRET&lt;/code&gt; changed, so the old sessions no longer match it. Set it once and keep it.&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>tutorial</category>
      <category>saas</category>
    </item>
    <item>
      <title>Hosting for Internal Tools</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Wed, 18 Nov 2026 16:18:32 +0000</pubDate>
      <link>https://dev.to/lightcloud/hosting-for-internal-tools-44j</link>
      <guid>https://dev.to/lightcloud/hosting-for-internal-tools-44j</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvf8l9uie49dn47hqpzj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvf8l9uie49dn47hqpzj.webp" alt="Hosting for Internal Tools" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For internal tools hosting, the cheapest setup for a small admin panel is Light Cloud's Free plan: $0, a visitor password in front of it, and no compute bill in the hours nobody opens it. Retool is also $0 for up to five users if you'd rather build the screens in Retool than write the app. Cloudflare costs $5 for a container and gives each person their own sign-in, which is the better gate. Render, Vercel, Netlify and Railway run $7 to $20 a month.&lt;/p&gt;

&lt;p&gt;Light Cloud is ours, and it's first. The method sits right below so you can check whether the order holds for your tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes an internal tool different
&lt;/h2&gt;

&lt;p&gt;An internal tool has a strange traffic shape. Five people open it after lunch, someone checks an order at 9 pm, and for most of the day it's idle. Paying for a server that waits all night is the usual waste, and a public URL with no gate is the usual risk.&lt;/p&gt;

&lt;p&gt;So two things decide the bill here. Does the tool cost anything while idle? And can you put a lock on it without writing authentication yourself?&lt;/p&gt;

&lt;h2&gt;
  
  
  How we ranked
&lt;/h2&gt;

&lt;p&gt;The reference tool is a small server app you wrote: a Django admin, a Rails dashboard or a Node panel. It reads a database you already run elsewhere, gets about 300 requests a day from five people, and must sit behind a password or login. Each platform gets its cheapest plan that a company may use, with its own gate, at list prices checked on 2026-10-13. Ties go to the platform that runs your own code in any language.&lt;/p&gt;

&lt;p&gt;Retool is in the table even though it hosts no code of yours. For a lot of teams the real choice is "build an admin panel or assemble one", and leaving it out would be pretending otherwise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ranking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Quiet tool a month&lt;/th&gt;
&lt;th&gt;Gate in front of it&lt;/th&gt;
&lt;th&gt;Runs your own code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Light Cloud&lt;/td&gt;
&lt;td&gt;$0, Free plan&lt;/td&gt;
&lt;td&gt;Shared password, every plan&lt;/td&gt;
&lt;td&gt;Any language or Dockerfile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Retool&lt;/td&gt;
&lt;td&gt;$0 for up to 5 users&lt;/td&gt;
&lt;td&gt;Retool login, no SSO on Free&lt;/td&gt;
&lt;td&gt;Built in Retool instead&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Cloudflare&lt;/td&gt;
&lt;td&gt;$5 Workers Paid for a container, $0 for a Worker&lt;/td&gt;
&lt;td&gt;Access: per-person login or SSO, free under 50 users&lt;/td&gt;
&lt;td&gt;Workers; containers on Paid&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Render&lt;/td&gt;
&lt;td&gt;$7 Starter web service&lt;/td&gt;
&lt;td&gt;None built in&lt;/td&gt;
&lt;td&gt;Any language or Dockerfile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;$20 Pro seat&lt;/td&gt;
&lt;td&gt;Vercel login, free viewer seats&lt;/td&gt;
&lt;td&gt;Functions; containers in beta&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Netlify&lt;/td&gt;
&lt;td&gt;$20 Pro&lt;/td&gt;
&lt;td&gt;Netlify team login on a private project&lt;/td&gt;
&lt;td&gt;Functions, not containers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Railway&lt;/td&gt;
&lt;td&gt;$20 Pro&lt;/td&gt;
&lt;td&gt;Railway login only on the $5,000 tier&lt;/td&gt;
&lt;td&gt;Any language or Dockerfile&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;List prices from each vendor's pricing and docs pages, checked 2026-10-13, US dollars; Retool's page shows euros to European visitors. The database the tool reads is not included.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Light Cloud
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a quiet admin panel in any language, behind one shared password.&lt;/p&gt;

&lt;p&gt;The pricing page prices a quiet server app, 300 requests a day, at $0.10 a month (&lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), and Free includes $1 of usage with no card, so the tool costs nothing. It scales to zero when nobody's using it. A visitor password works on Free too: Security tab, Set password, type it twice, Save, as in &lt;a href="https://blog.light-cloud.com/tutorials/password-protect-a-staging-site" rel="noopener noreferrer"&gt;the staging tutorial&lt;/a&gt;. The password page answers 401 and tells search engines to stay away.&lt;/p&gt;

&lt;p&gt;The tool can be the Django admin you already have, a Rails app or a Dockerfile; we &lt;a href="https://light-cloud.com/frameworks" rel="noopener noreferrer"&gt;deploy Django, Rails, Laravel and more&lt;/a&gt; without asking you to rewrite it. Its &lt;a href="https://light-cloud.com/observability" rel="noopener noreferrer"&gt;logs and metrics&lt;/a&gt; sit next to the deploy, which helps when the person who built it is on holiday. If you built the tool with an agent, you can &lt;a href="https://light-cloud.com/deploy-with-ai" rel="noopener noreferrer"&gt;deploy from Claude Code&lt;/a&gt; the same way.&lt;/p&gt;

&lt;p&gt;The costs of that $0. Free has no databases, so the tool connects to one you already run, or you move to Lite at $5 for a shared Postgres. Apps on Free live on a light-cloud.io address and show a small "by Light Cloud" link on every HTML page. The first request after a quiet spell waits &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-4-cold-starts" rel="noopener noreferrer"&gt;3.1 to 3.7 seconds&lt;/a&gt; for a container to start. And the gate is one password everybody shares, with no single sign-on.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Retool
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams that would rather assemble an admin panel than write one.&lt;/p&gt;

&lt;p&gt;Retool's Free plan covers up to 5 users in Retool's cloud, production only, with 500 workflow runs a month (&lt;a href="https://retool.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Every user signs in to Retool, so there's a real login per person, though SSO, SCIM and 2FA aren't on Free. Paid plans are priced per builder and per internal user; the page I saw from Poland listed Team at 9 euros per builder and 5 euros per internal user a month, billed annually.&lt;/p&gt;

&lt;p&gt;You don't host anything, and that's the point. Tables, forms and buttons go on top of your database or API without anyone writing a frontend. The trade-off is that the tool lives in Retool's editor, not in your repository as plain code, and custom SSO is an Enterprise feature. Self-hosting with Docker takes about 15 minutes, Retool says, on Enterprise.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Cloudflare
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; tools where each person must sign in with the company login.&lt;/p&gt;

&lt;p&gt;Cloudflare Access is free for teams under 50 users (&lt;a href="https://www.cloudflare.com/sase/products/access/" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). It can use your identity provider or send a one-time code by email, and every request is checked against a policy that names who's allowed. That's a better lock than any shared password, and you can remove one person without telling the other four a new secret.&lt;/p&gt;

&lt;p&gt;The app runs on Workers, free for 100,000 requests a day if it's JavaScript. A container, say the Django admin, needs Workers Paid, with a $5 monthly minimum, and Containers &lt;a href="https://developers.cloudflare.com/containers/platform/pricing/" rel="noopener noreferrer"&gt;bill only while running&lt;/a&gt;. Setting up an Access application takes about nine actions in the dashboard, and the domain must be active on Cloudflare.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Render
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; an always-on tool at a fixed price, with the login in your app.&lt;/p&gt;

&lt;p&gt;A Starter web service is $7 a month for 512 MB (&lt;a href="https://render.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Free web services exist, but they spin down after 15 minutes, take about a minute to wake, and Render says &lt;a href="https://render.com/docs/free" rel="noopener noreferrer"&gt;not to use them for production&lt;/a&gt;. A minute's wait is long for someone checking one order.&lt;/p&gt;

&lt;p&gt;I found no built-in login gate for web services in Render's docs, so the password or SSO goes into your code. Render's private network is a plus here: an internal tool can talk to other Render services without a public route.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Vercel
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Next.js tools whose users already have Vercel accounts.&lt;/p&gt;

&lt;p&gt;A company tool can't run on Hobby, which is &lt;a href="https://vercel.com/docs/limits/fair-use-guidelines" rel="noopener noreferrer"&gt;for non-commercial use&lt;/a&gt;. Pro is $20 per deploying seat, and viewer seats are free (&lt;a href="https://vercel.com/docs/plans/pro-plan" rel="noopener noreferrer"&gt;Pro plan&lt;/a&gt;). Since 2026-09-09, Vercel Authentication can &lt;a href="https://vercel.com/changelog/protect-production-deployments-for-free-on-every-plan" rel="noopener noreferrer"&gt;protect production at no cost&lt;/a&gt;, so only team members with at least a viewer role get in.&lt;/p&gt;

&lt;p&gt;It's a tidy setup for a Next.js admin page. For anything else the code runs as functions, or as a container in the beta Container Runtime, and everyone who opens the tool needs a Vercel account.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Netlify
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; dashboards built as a static site plus functions.&lt;/p&gt;

&lt;p&gt;Make a project private and Netlify asks every visitor to sign in with their Netlify account; you invite people by email (&lt;a href="https://docs.netlify.com/manage/security/secure-access-to-sites/password-protection/" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). On Free and Personal only the Team Owner can see a private project, so five people means Pro, $20 a month flat with unlimited members.&lt;/p&gt;

&lt;p&gt;Netlify's backend is serverless functions, and I found no way to run a container there, so a Django admin or a Rails dashboard has to live somewhere else.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Railway
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; tools that need a cron job or worker beside them.&lt;/p&gt;

&lt;p&gt;Railway runs any container, and cron jobs and private networking are on every plan (&lt;a href="https://railway.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Hobby is $5, but Railway &lt;a href="https://docs.railway.com/pricing/faqs" rel="noopener noreferrer"&gt;recommends Pro, $20 a month, for commercial apps&lt;/a&gt;, and a company tool is one. A service can sleep when idle if you turn on Serverless.&lt;/p&gt;

&lt;p&gt;The gate is the weak part. Railway's own login gate requires the &lt;a href="https://blog.railway.com/p/railway-authentication-identity-aware-proxy" rel="noopener noreferrer"&gt;$5,000-a-month committed tier&lt;/a&gt;, so below it the login goes into your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the others beat us
&lt;/h2&gt;

&lt;p&gt;Cloudflare Access is the better lock, full stop. Per-person sign-in, your identity provider, one person removed at a time, and it's free for under 50 users. If the tool touches customer data, that's what an auditor will want to see, and our shared password won't satisfy them. Vercel and Netlify get you per-person logins too, as long as everyone has an account there.&lt;/p&gt;

&lt;p&gt;Retool beats all of us on how fast a non-trivial admin screen appears. If nobody on the team wants to write a CRUD form again, start there. And Render and Railway give internal tools a private network to sit on, plus cron jobs for the nightly export, both of which we don't have.&lt;/p&gt;

&lt;p&gt;What we do well is the boring, common case: an app you already wrote, used now and then, that should cost nothing overnight and should not be open to the internet. That's &lt;a href="https://light-cloud.com" rel="noopener noreferrer"&gt;internal tools hosting&lt;/a&gt; on our Free plan, password included.&lt;/p&gt;

&lt;p&gt;How many people actually open your admin panel on a normal day?&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>internaltools</category>
      <category>security</category>
    </item>
    <item>
      <title>Cheapest Full-Stack Hosting in 2026</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Mon, 16 Nov 2026 16:04:20 +0000</pubDate>
      <link>https://dev.to/lightcloud/cheapest-full-stack-hosting-in-2026-23c7</link>
      <guid>https://dev.to/lightcloud/cheapest-full-stack-hosting-in-2026-23c7</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgg7742ag3axkwyc7mioh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgg7742ag3axkwyc7mioh.webp" alt="Cheapest Full-Stack Hosting in 2026" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The cheapest full-stack hosting for a React app, a Node.js API and a managed PostgreSQL database in 2026 is Light Cloud at $5 a month, with Railway at about $5.30 once the RAM and CPU it bills by are counted. Google Cloud Run with Cloud SQL is about $9.40 if you're willing to set it up yourself. Heroku, DigitalOcean and Render sit between $10 and $14, and AWS and Fly.io with a managed database land near $40.&lt;/p&gt;

&lt;p&gt;We make Light Cloud, the first row. The method is below the fold and every price links to the vendor's page.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we ranked
&lt;/h2&gt;

&lt;p&gt;This is the stack from &lt;a href="https://blog.light-cloud.com/cloud/same-app-four-platforms" rel="noopener noreferrer"&gt;our four-platform comparison&lt;/a&gt;, repriced in October 2026 and widened to eight platforms: a React frontend, one Node.js API, a managed PostgreSQL database and a custom domain, at about 1,000 API requests a day. Prices are list prices from the vendors' own pages, checked on 2026-10-13 and again on 2026-11-02, in US dollars, smallest sensible tier, no trial credits. AWS is priced in us-east-1. Where a platform bills by usage, the price is the usage this stack generates, not the plan's starting fee, so no row hides its bill behind a "+".&lt;/p&gt;

&lt;p&gt;"Managed" is the rule that decides the top of the table. It means the database is a product the vendor sells and supports, with someone else patching it. Without that rule, Fly.io's unsupported self-run Postgres would win at about $4, and I'd rather tell you that than hide it; it's in the last section.&lt;/p&gt;

&lt;p&gt;Cheap today is half the question. So the second column repeats each bill at 15 times the traffic, 15,000 requests a day, which is roughly what a launch week or a mention in a newsletter does to a small app. Fixed-price platforms don't move. Usage-priced ones do, and you should know by how much.&lt;/p&gt;

&lt;p&gt;Kept running all month, with no scale to zero, the same stack gets the Always on prices in the table. Light Cloud comes last there at about $56, because an always-on instance needs the $19 Starter plan and a Micro costs about $52 a month. Google Cloud Run can keep a minimum instance warm at its lower idle rate, about $5 a month at a quarter of a vCPU.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ranking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Full stack a month&lt;/th&gt;
&lt;th&gt;Always on, a month&lt;/th&gt;
&lt;th&gt;At 15,000 requests a day&lt;/th&gt;
&lt;th&gt;Managed Postgres&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Light Cloud&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;about $56 (Starter, always-on Micro)&lt;/td&gt;
&lt;td&gt;About $7.30, billed per use&lt;/td&gt;
&lt;td&gt;Shared, $4, Belgium only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Railway&lt;/td&gt;
&lt;td&gt;about $5.30 (Hobby $5 + about $0.30 of usage)&lt;/td&gt;
&lt;td&gt;about $5.30&lt;/td&gt;
&lt;td&gt;About $6, billed by RAM and CPU used&lt;/td&gt;
&lt;td&gt;Template service, billed by use&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Google Cloud Run&lt;/td&gt;
&lt;td&gt;about $9.40 (Cloud SQL with 10 GB SSD, domain via Firebase Hosting)&lt;/td&gt;
&lt;td&gt;about $14.40 (plus one warm 0.25 vCPU instance)&lt;/td&gt;
&lt;td&gt;About $9.40, still in the free tier&lt;/td&gt;
&lt;td&gt;Cloud SQL, you set it up&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Heroku&lt;/td&gt;
&lt;td&gt;$10 to $12&lt;/td&gt;
&lt;td&gt;$12&lt;/td&gt;
&lt;td&gt;$12, unchanged&lt;/td&gt;
&lt;td&gt;Essential-0, $5, 1 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;DigitalOcean App Platform&lt;/td&gt;
&lt;td&gt;$12&lt;/td&gt;
&lt;td&gt;$12&lt;/td&gt;
&lt;td&gt;$12, unchanged&lt;/td&gt;
&lt;td&gt;Dev database, no backups by default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Render&lt;/td&gt;
&lt;td&gt;$13.30&lt;/td&gt;
&lt;td&gt;$13.30&lt;/td&gt;
&lt;td&gt;$13.30, unchanged&lt;/td&gt;
&lt;td&gt;$6 plus $0.30 per GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;td&gt;about $40&lt;/td&gt;
&lt;td&gt;~$40&lt;/td&gt;
&lt;td&gt;About $40, unchanged&lt;/td&gt;
&lt;td&gt;RDS db.t4g.micro, $11.52&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Fly.io&lt;/td&gt;
&lt;td&gt;about $40&lt;/td&gt;
&lt;td&gt;~$40&lt;/td&gt;
&lt;td&gt;About $40, unchanged&lt;/td&gt;
&lt;td&gt;Managed from $38, or about $2 unsupported&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;List prices from each vendor's pricing and docs pages, checked 2026-10-13. Light Cloud usage uses the pricing page's assumption of 0.2 s of instance time per request. Railway usage assumes about 450 MB of RAM and 0.03 vCPU on average across the API and Postgres, with the API serving the built frontend. Cloud SQL includes 10 GB of SSD storage. AWS in us-east-1, before storage, LCU and data transfer charges. Taxes and bandwidth beyond included allowances excluded.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Light Cloud
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; the lowest all-in bill for an app that is quiet most of the day.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://light-cloud.com" rel="noopener noreferrer"&gt;cheapest full-stack hosting&lt;/a&gt; here is one $5 plan. Lite includes $5 of usage, a custom domain and one shared PostgreSQL database (&lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). The app uses about $4.55 of it: the database is $4 plus 30 cents for a GB of storage, the API about 20 cents (1,000 requests a day at 0.2 s each is 1.7 instance-hours at $0.12), the static frontend and builds a few cents. With &lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pay-as-you-go hosting&lt;/a&gt; the API is billed for the hours it actually runs, so a quiet night costs nothing.&lt;/p&gt;

&lt;p&gt;At 15,000 requests a day the API's share rises to about $3.04, the figure our pricing page uses for a busy app, and the bill becomes about $7.30: still Lite, plus about $2.30 of usage on the next invoice. Nothing else changes. Frontend, API and &lt;a href="https://light-cloud.com/databases" rel="noopener noreferrer"&gt;PostgreSQL database hosting&lt;/a&gt; sit in one project, &lt;a href="https://light-cloud.com/deployments" rel="noopener noreferrer"&gt;GitHub deploys&lt;/a&gt; ship each push, and the same console has &lt;a href="https://light-cloud.com/observability" rel="noopener noreferrer"&gt;built-in logs and metrics&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What you give up for $5: shared databases run in Belgium only, there's no private network between services, no cron and no workers. A container that has scaled to zero takes 3.1 to 3.7 seconds to answer its first request. An always-on instance needs the $19 Starter plan and runs about $52 a month, so a service that's busy around the clock belongs on a fixed instance somewhere else.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Railway
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; free builds and cheap egress, for about 30 cents more.&lt;/p&gt;

&lt;p&gt;Hobby is $5 a month including $5 of usage (&lt;a href="https://docs.railway.com/pricing/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;). Compute is metered by what services hold: $10 per GB of RAM a month, $20 per vCPU a month. Builds are free and egress is $0.05 per GB, both cheaper than ours. Postgres is a template service billed the same way, plus $0.15 per GB of volume storage. For this stack that's about $5.33: roughly $2.50 for a Node API averaging 250 MB that also serves the built frontend, $2 for Postgres at 200 MB, $0.60 of CPU, and cents for the volume and egress. The bill is the larger of $5 and the usage, so about $5.30, and the same always on, because 1,000 requests a day rarely leave the API idle long enough to sleep.&lt;/p&gt;

&lt;p&gt;Because Railway bills RAM that a service holds rather than requests it serves, more traffic only raises the bill when the service needs more memory or CPU to handle it. Give each of the 14,000 extra requests a day 0.2 s of CPU, the same assumption our row uses, and that's about 65 cents more, so about $6 at 15,000 requests a day. That's a different curve from ours, and at this traffic a cheaper one. Railway &lt;a href="https://docs.railway.com/pricing/faqs" rel="noopener noreferrer"&gt;recommends Pro&lt;/a&gt;, $20 a month, for commercial apps.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Google Cloud Run, used directly
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; the lowest price per request at volume.&lt;/p&gt;

&lt;p&gt;Our containers run on Cloud Run, so this row is the do-it-yourself version of ours, and at volume it's cheaper. The free tier covers 180,000 vCPU-seconds and 2 million requests a month (&lt;a href="https://cloud.google.com/run/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;); even 15,000 requests a day at 0.2 s each is 90,000 vCPU-seconds, so compute stays at $0. Cloud SQL's smallest instance is $0.0105 an hour, about $7.67 a month, and 10 GB of SSD storage adds $1.70 at $0.17 per GB (&lt;a href="https://cloud.google.com/sql/pricing" rel="noopener noreferrer"&gt;Cloud SQL pricing&lt;/a&gt;): $9.37.&lt;/p&gt;

&lt;p&gt;The price is your time: a billing account, IAM roles, a Cloud SQL instance, and a load balancer or Firebase Hosting for the domain, because Cloud Run's own domain mapping is &lt;a href="https://cloud.google.com/run/docs/mapping-custom-domains" rel="noopener noreferrer"&gt;not production-ready&lt;/a&gt;. Firebase Hosting is the cheap route: its no-cost quota is 10 GB stored and 360 MB served a day (&lt;a href="https://firebase.google.com/pricing" rel="noopener noreferrer"&gt;Firebase pricing&lt;/a&gt;), which this app stays inside at 1,000 requests a day. The load balancer Google recommends is a monthly charge of its own. Spend caps that pause Cloud Run became generally available on 2026-10-12.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Heroku
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; one dyno serving the API and the built frontend.&lt;/p&gt;

&lt;p&gt;Eco is $5 a month for 1,000 shared dyno hours, sleeps after 30 minutes and is for personal apps only; Basic is $7 and always on. Essential-0 Postgres is $5 with 1 GB of disk (&lt;a href="https://www.heroku.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). So $10 or $12, and traffic doesn't change it until you need a second dyno, which on Heroku means Standard-1X at $25.&lt;/p&gt;

&lt;p&gt;A card is required before you deploy, and since 2026-02-06 Heroku is in &lt;a href="https://www.heroku.com/blog/an-update-on-heroku/" rel="noopener noreferrer"&gt;sustaining engineering mode&lt;/a&gt;: maintained, not developed.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. DigitalOcean App Platform
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; fixed container prices with a free static tier for the frontend.&lt;/p&gt;

&lt;p&gt;A 512 MiB container is $5 a month and a development database $7 (&lt;a href="https://www.digitalocean.com/pricing/app-platform" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;); the React build goes on the free static tier. $12, flat. The catch is in the database: a development database is tied to one app, has no backups by default and is deleted with the app. Managed PostgreSQL that survives the app starts at $15 (&lt;a href="https://docs.digitalocean.com/products/databases/postgresql/details/pricing/" rel="noopener noreferrer"&gt;database pricing&lt;/a&gt;), which makes it $20.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Render
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; fixed per-service prices that stay flat as traffic grows.&lt;/p&gt;

&lt;p&gt;A Starter web service is $7 a month for 512 MB and the smallest Postgres $6 plus $0.30 per GB (&lt;a href="https://render.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;): $13.30, frontend free as a static site. Traffic doesn't change the bill until the instance runs out of headroom, and then the next step is a bigger plan you choose, not a meter. Render's free tier isn't an option for this app: free Postgres &lt;a href="https://render.com/docs/free" rel="noopener noreferrer"&gt;expires after 30 days&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. AWS
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams already on AWS who need what only AWS has.&lt;/p&gt;

&lt;p&gt;The managed container route is now ECS, since App Runner &lt;a href="https://aws.amazon.com/apprunner/" rel="noopener noreferrer"&gt;stopped accepting new customers&lt;/a&gt; on 2026-04-30. In us-east-1 the smallest Fargate task running all month is about $8.89, a public IPv4 address $3.60 and an Application Load Balancer $16.20 before usage charges (&lt;a href="https://aws.amazon.com/fargate/pricing/" rel="noopener noreferrer"&gt;Fargate&lt;/a&gt;, &lt;a href="https://aws.amazon.com/elasticloadbalancing/pricing/" rel="noopener noreferrer"&gt;load balancer&lt;/a&gt;). The cheapest RDS for PostgreSQL instance, db.t4g.micro, is $0.016 an hour, $11.52 a month. About $40 before storage and data transfer, and almost half of it is the load balancer.&lt;/p&gt;

&lt;p&gt;ECS Express Mode, which AWS recommends instead of App Runner, has no extra charge and can share one load balancer across services, so the second and third service are cheaper than the first. For one small app, though, the fixed parts dominate.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Fly.io
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; apps that need machines in several regions.&lt;/p&gt;

&lt;p&gt;Machines are the cheapest compute here, from $2.19 a month always on (&lt;a href="https://docs.fly.io/about/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), and they can stop when idle. Managed Postgres starts at $38 plus $0.28 per GB (&lt;a href="https://docs.fly.io/postgres" rel="noopener noreferrer"&gt;docs&lt;/a&gt;), so about $40 with a supported database. Fly's self-managed Postgres is about $2 a month for a development node, but it's officially unsupported.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the others beat us
&lt;/h2&gt;

&lt;p&gt;Fly.io with its self-managed Postgres comes to about $4.20 a month, the only stack in this post under ours. If you're comfortable running and backing up your own database, that's the real cheapest. Cloud Run used directly gets cheaper than us as traffic grows, because its free tier keeps covering compute while our bill counts instance-hours. At 15,000 requests a day it's about $9.40 against our $7.30, and only Cloud SQL's fixed $9.37 with its storage keeps it behind; by my arithmetic, past roughly 25,000 requests a day the do-it-yourself version wins. Railway is already cheaper than us at that traffic, about $6. Render, DigitalOcean and Heroku don't move at all with traffic, and for a service that is busy around the clock, a $7 fixed instance beats our always-on price by a wide margin. Railway's free builds and $0.05 egress are cheaper than our $0.01 a minute and $0.20 per GB.&lt;/p&gt;

&lt;p&gt;Where we're ahead is the all-in bill for a full-stack app before it's busy: frontend, API, a managed database and a domain on one $5 plan, with no load balancer, IAM role or second account to set up. &lt;a href="https://blog.light-cloud.com/tutorials/deploy-a-react-app" rel="noopener noreferrer"&gt;Deploying a React app&lt;/a&gt; and &lt;a href="https://blog.light-cloud.com/tutorials/add-postgres-to-nodejs-app" rel="noopener noreferrer"&gt;adding Postgres to the API&lt;/a&gt; are the two tutorials that build this exact stack. If you've read &lt;a href="https://blog.light-cloud.com/comparisons/render-vs-railway-vs-light-cloud" rel="noopener noreferrer"&gt;the three-way bill&lt;/a&gt;, this is the wider version of it.&lt;/p&gt;

&lt;p&gt;What would your app's bill look like at 15 times today's traffic?&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>hosting</category>
      <category>cloudcost</category>
    </item>
    <item>
      <title>Preview Environment Pricing Compared</title>
      <dc:creator>Julia</dc:creator>
      <pubDate>Tue, 10 Nov 2026 17:45:08 +0000</pubDate>
      <link>https://dev.to/lightcloud/preview-environment-pricing-compared-43ho</link>
      <guid>https://dev.to/lightcloud/preview-environment-pricing-compared-43ho</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8sygei5x1peoipt5diz5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8sygei5x1peoipt5diz5.webp" alt="Preview Environment Pricing Compared" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Preview environment pricing comes down to one question: does a preview that nobody is looking at keep billing? On Light Cloud, Vercel and Netlify it doesn't, so four open previews of a full-stack app add close to nothing to the month. Railway, Heroku and Render run each preview as another copy of your app, and four of them add about $8 to $19, $48 and $78.20.&lt;/p&gt;

&lt;p&gt;That's for an app with a real backend. If your site is frontend only, previews cost nothing extra on Vercel, Netlify and Cloudflare Pages, and the only question left is which one you like working in.&lt;/p&gt;

&lt;p&gt;We make Light Cloud, which comes first here, partly on a tie-break I'll explain. Every other number links to the vendor's own page.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we ranked
&lt;/h2&gt;

&lt;p&gt;The reference app is a React frontend, an API that runs as a container, and PostgreSQL. Four pull requests are open all month, and each preview gets opened a few times, by the author and a reviewer, and otherwise sits there. That's a normal week for a small team.&lt;/p&gt;

&lt;p&gt;The figure in the table is what those four previews add on top of the app's own bill, using list prices checked on 2026-10-13 and again on 2026-11-02 for Railway, Fly.io and Netlify. If a platform only offers full-stack previews on a higher plan, the upgrade counts. Where a platform bills by usage I state the assumption and price that usage, not the plan's starting fee. Light Cloud and Vercel both come out at about zero, so the tie goes to the cheaper plan the whole app runs on.&lt;/p&gt;

&lt;p&gt;One thing the price doesn't show is what's inside the preview's database. A fresh, empty database, a branch of production, or production itself are three very different things for a reviewer, so that's the first column.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ranking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;4 open previews add a month&lt;/th&gt;
&lt;th&gt;Database in each preview&lt;/th&gt;
&lt;th&gt;Plan it needs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Light Cloud&lt;/td&gt;
&lt;td&gt;$0 (about $0.24 of builds, inside Lite's included $5)&lt;/td&gt;
&lt;td&gt;Shares production until you change it&lt;/td&gt;
&lt;td&gt;Every plan; Postgres from Lite at $5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;about $0&lt;/td&gt;
&lt;td&gt;Branch from a partner such as Neon&lt;/td&gt;
&lt;td&gt;Pro, $20 per seat, for commercial use&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Netlify&lt;/td&gt;
&lt;td&gt;$0, plus database branches whose price isn't published&lt;/td&gt;
&lt;td&gt;Branch with a copy of production data&lt;/td&gt;
&lt;td&gt;Every plan; serverless functions, not containers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Fly.io&lt;/td&gt;
&lt;td&gt;about $0.60 of disk&lt;/td&gt;
&lt;td&gt;None in the default workflow&lt;/td&gt;
&lt;td&gt;Pay as you go&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Railway&lt;/td&gt;
&lt;td&gt;$8 to $19 (API asleep or awake)&lt;/td&gt;
&lt;td&gt;Copy of the database service&lt;/td&gt;
&lt;td&gt;Every plan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Heroku&lt;/td&gt;
&lt;td&gt;$48&lt;/td&gt;
&lt;td&gt;Postgres add-on from app.json&lt;/td&gt;
&lt;td&gt;Billed as normal apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Render&lt;/td&gt;
&lt;td&gt;$78.20&lt;/td&gt;
&lt;td&gt;Fresh datastores, no data copied&lt;/td&gt;
&lt;td&gt;Pro workspace, $25 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;List prices from each vendor's pricing and docs pages, checked 2026-10-13, US dollars. Railway assumes each preview's API idles at about 250 MB of RAM and its Postgres at 200 MB. Fly.io assumes a 1 GB image per stopped machine. Netlify doesn't publish a price for Netlify Database. Heroku uses a Basic dyno and Essential-0 Postgres per review app. Render counts the Pro workspace plus a $7 web service and a $6 Postgres with 1 GB per preview.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Light Cloud
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; container and API previews that cost nothing while they sit idle.&lt;/p&gt;

&lt;p&gt;Every branch you push gets an environment and its own URL, and preview URLs are unlimited on every plan, Free included (&lt;a href="https://docs.light-cloud.com/platform/preview-environments" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). Containers scale to zero when nobody uses them, so the only fixed cost is the build: the pricing page counts two 2-minute builds at $0.01 a minute for a server app and two cents for a static preview (&lt;a href="https://light-cloud.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Four previews of the reference app come to about $0.24 a month. The app itself uses about $4.24 of Lite's included $5, so the invoice stays at $5. That's the case for &lt;a href="https://light-cloud.com" rel="noopener noreferrer"&gt;preview environment pricing&lt;/a&gt; that follows traffic instead of time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://light-cloud.com/previews" rel="noopener noreferrer"&gt;Per-branch preview environments&lt;/a&gt; don't count against the plan's server-app limit, and you can &lt;a href="https://light-cloud.com/frameworks" rel="noopener noreferrer"&gt;deploy a Dockerfile, Django or Spring Boot app&lt;/a&gt; as the API, not only JavaScript. Deleting the branch deletes the environment, which &lt;a href="https://blog.light-cloud.com/tutorials/preview-url-for-every-branch" rel="noopener noreferrer"&gt;the branch preview tutorial&lt;/a&gt; shows end to end.&lt;/p&gt;

&lt;p&gt;The weak spot is the database. A preview starts from the app's environment variables, so it talks to the production database until you point it somewhere else. On Starter and up you can give previews a &lt;a href="https://light-cloud.com/databases" rel="noopener noreferrer"&gt;Postgres database of their own&lt;/a&gt; for about $4 a month, and Lite allows only one database in total. Nothing on our side copies production data into a branch, which is safe and also means the reviewer starts with whatever you seed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Vercel
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Next.js teams on Pro that want a database branch in every preview.&lt;/p&gt;

&lt;p&gt;Vercel builds a preview for pushes and pull requests on every plan (&lt;a href="https://vercel.com/docs/deployments/environments" rel="noopener noreferrer"&gt;docs&lt;/a&gt;), and a container running on its Container Runtime, in beta, &lt;a href="https://vercel.com/docs/functions/runtimes/container" rel="noopener noreferrer"&gt;scales down after 30 seconds without traffic&lt;/a&gt; in a preview. Idle previews therefore cost about nothing. I found no separate preview fee. A commercial project needs Pro, $20 per deploying seat, because Hobby is &lt;a href="https://vercel.com/docs/limits/fair-use-guidelines" rel="noopener noreferrer"&gt;for non-commercial use&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The database comes from a Marketplace partner. With Neon's Vercel integration, every preview deployment &lt;a href="https://neon.com/docs/introduction/branching" rel="noopener noreferrer"&gt;gets its own branch&lt;/a&gt;, a copy-on-write clone that costs almost nothing while idle; Neon's Free plan allows 10 branches per project. That's a better reviewer experience than ours, at the price of one more vendor and one more bill.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Netlify
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; apps whose backend fits in serverless functions.&lt;/p&gt;

&lt;p&gt;Deploy previews and branch deploys &lt;a href="https://docs.netlify.com/manage/accounts-and-billing/billing/billing-for-credit-based-plans/credit-based-pricing-plans/" rel="noopener noreferrer"&gt;use no credits&lt;/a&gt; on any plan, and functions bill only while they run. With Netlify Database, each deploy preview &lt;a href="https://docs.netlify.com/build/data-and-storage/netlify-database/" rel="noopener noreferrer"&gt;gets its own database branch with a copy of the production data&lt;/a&gt;, taken when the preview is first created. On paper this is the best preview in the table, for $0 in credits. Netlify doesn't publish a price for Netlify Database, so what the branches add is unknown.&lt;/p&gt;

&lt;p&gt;It ranks third because the reference API is a container, and Netlify runs functions: 60 seconds for a normal request, up to 15 minutes in the background. If your API is an Express app you can split into functions, Netlify is the answer. A Django, Spring Boot or Go server that wants to stay a server has no home there. Copying production data into previews is also a decision your compliance person may want a say in.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Fly.io
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams who'll maintain their own preview workflow.&lt;/p&gt;

&lt;p&gt;Fly's &lt;a href="https://docs.fly.io/blueprints/review-apps-guide" rel="noopener noreferrer"&gt;review apps guide&lt;/a&gt; uses a GitHub Action that deploys one app per pull request. Machines can stop when idle, and a stopped machine is billed only for its root file system at $0.15 per GB a month (&lt;a href="https://docs.fly.io/about/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), so four idle previews with 1 GB images cost about $0.60, plus a few cents for the minutes they run when someone opens them.&lt;/p&gt;

&lt;p&gt;The default workflow starts a single app with no database. Anything more, a Postgres per preview or several apps, means customizing the workflow yourself, and Fly has no billing alerts to warn you if a preview forgets to stop.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Railway
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; whole-app copies per pull request, extras included.&lt;/p&gt;

&lt;p&gt;Railway creates an environment for each pull request and deletes it when the pull request is merged or closed. It deploys &lt;a href="https://docs.railway.com/pricing/faqs" rel="noopener noreferrer"&gt;a mirror copy of your workloads&lt;/a&gt; and bills them as normal usage: RAM at $10 per GB a month and CPU at $20 per vCPU a month. A small API usually idles at about 250 MB and Postgres at about 200 MB, so a preview holds about 450 MB: $4.50 a month of RAM plus about $0.20 of CPU, about $19 for four. Your number will differ; Railway bills what the services actually use.&lt;/p&gt;

&lt;p&gt;Sleep is opt-in. Turn on &lt;a href="https://docs.railway.com/deployments/serverless" rel="noopener noreferrer"&gt;Serverless&lt;/a&gt; for the API and it stops 5 to 10 minutes after its last outbound traffic, which takes most of the API out of that figure. The database keeps running, so four previews come to about $8. In exchange you get the closest thing to a real copy of the app.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Heroku
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; teams already on Heroku Pipelines.&lt;/p&gt;

&lt;p&gt;Review apps are &lt;a href="https://devcenter.heroku.com/articles/github-integration-review-apps" rel="noopener noreferrer"&gt;charged exactly like normal apps&lt;/a&gt;, prorated to the second, and they can create their own Postgres from &lt;code&gt;app.json&lt;/code&gt;. With a Basic dyno at $7 and Essential-0 Postgres at $5 (&lt;a href="https://www.heroku.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;), each open review app is $12 a month, so four add $48.&lt;/p&gt;

&lt;p&gt;A Basic dyno never sleeps, which is why this is expensive for something people look at twice. Heroku moved to a &lt;a href="https://www.heroku.com/blog/an-update-on-heroku/" rel="noopener noreferrer"&gt;sustaining engineering model&lt;/a&gt; on 2026-02-06, so don't expect this to change.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Render
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; full-stack previews with fresh services, datastores and a private network.&lt;/p&gt;

&lt;p&gt;Render's preview environments copy your services and datastores, though not their data, for every pull request. They &lt;a href="https://render.com/docs/preview-environments" rel="noopener noreferrer"&gt;need the Pro workspace&lt;/a&gt; at $25 a month and are billed like normal services, prorated by the second. With a $7 web service and a $6 Postgres plus $0.30 for a gigabyte of storage, each preview is $13.30 a month (&lt;a href="https://render.com/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;). Four of them plus Pro: $78.20.&lt;/p&gt;

&lt;p&gt;The free Hobby workspace gets single-service previews, one web service or static site per pull request, with no database. For a frontend that's enough, and free if the base is a free static site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the others beat us
&lt;/h2&gt;

&lt;p&gt;The database is where we lose. Netlify copies production data into every preview, Vercel with Neon gives each one a copy-on-write branch, and Railway and Render create a fresh database service per pull request. Ours shares production until you change a variable. If reviewers need realistic data without touching production, all four are better today; &lt;a href="https://blog.light-cloud.com/tutorials/microservices-on-light-cloud-part-5-branches-and-rollback" rel="noopener noreferrer"&gt;part 5 of the microservices series&lt;/a&gt; shows the workaround on our side: override the preview's variables.&lt;/p&gt;

&lt;p&gt;Render and Railway also give services a private network, which we don't have: our services call each other over public HTTPS. And if your whole app is a Next.js frontend with API routes, Vercel is the natural home for it, and its previews cost about what ours do.&lt;/p&gt;

&lt;p&gt;Where we're ahead is the plain container case. Your API is a server, maybe not in JavaScript, the team opens a few pull requests a week, and nobody wants to pay for copies that run all night. Here, four previews cost a quarter in build minutes, and the &lt;a href="https://blog.light-cloud.com/comparisons/render-alternatives" rel="noopener noreferrer"&gt;comparison with Render&lt;/a&gt; shows what the same app costs outside its previews.&lt;/p&gt;

&lt;p&gt;How many previews does your team have open right now, and when did someone last open the oldest one?&lt;/p&gt;

</description>
      <category>lightcloud</category>
      <category>cloudplatform</category>
      <category>previewenvironments</category>
      <category>cloudcost</category>
    </item>
  </channel>
</rss>
