Bolt to Production: What a Fixed-Price Scope Covers
By Alvi Lika, Founder, Soatech
· · 8 min read
What it takes to put a Bolt app in front of paying users, what Bolt now checks for you, the five gaps to close, and when a fixed one-week scope does not fit.
A Bolt app that works in preview is a real asset: the screens exist, the flows are clear, and the code is in a framework other engineers know. "Taking it to production" means making it safe for people who did not build it and will not forgive it: other customers' data stays separate, payments are recorded exactly once, failures are visible, and a change can be released and rolled back.
This article covers what Bolt now does for you, the five gaps that usually remain, how a fixed-price scope for that work can be written, and the situations where a fixed one-week scope is the wrong shape.
What Bolt now handles
Bolt has moved well beyond a code generator. As of November 2026 its documentation and pricing page describe:
- Hosting and built-in databases (Bolt Cloud), with a choice of database provider on paid plans.
- A database security check on all plans that flags open permissions and missing row-level security policies, using the same checks as Supabase's Security Advisor (database security).
- A project security audit on paid plans that reviews code and database for six areas: whether one user can see or change another's data, what public pages and sign-in screens reveal, sign-in and session rules, misuse such as changing a price or claiming a single-use item twice, unsafe handling of visitor input, and keys kept out of the browser (security audit). Bolt fixes most findings itself and lists the rest as action items.
- Two-way GitHub sync, with branches you merge in GitHub (Git integration).
Run the audit before anything else. It is free of token cost when started from the Publish menu, and it will find real issues. What it cannot do is decide your business rules: who in a customer's organisation may see an invoice, what happens when a payment arrives twice, or which failures should wake someone up. That is the work below.
The five gaps that usually remain
These are patterns in how AI-generated apps are typically built, not findings from a specific client codebase. Your app may have none of them or all of them.
1. Data isolation that depends on the client
Many Bolt apps use a Supabase-style setup where the browser queries the database directly with a public key. In that design, row-level security is the only thing standing between one customer and another's rows. Supabase's guide says a table without RLS in an exposed schema can be read and written by any role with a grant on it (Supabase RLS).
For a product where users belong to organisations, the policy has to follow membership, not just the signed-in user:
-- Simplified. Assumes public.memberships(user_id, org_id) and projects.org_id.
alter table public.projects enable row level security;
create policy "members can read their org's projects"
on public.projects
for select
to authenticated
using (
org_id in (
select org_id from public.memberships
where user_id = (select auth.uid())
)
);
Three details matter in practice. The memberships table needs its own policies, and a policy on it that queries itself can recurse; a security definer helper function is the usual fix. Supabase's secret (service-role) key bypasses RLS when a request carries no user token, so it must never reach the browser. And in plain PostgreSQL, table owners and roles with BYPASSRLS skip policies unless you force them (PostgreSQL docs).
RLS is not the only valid design. If the browser never talks to the database and every query goes through one server-side data layer, application-level scoping works. Wintura, our own product, does this: every tenant-owned table carries an agency_id and the data layer scopes each query by it, with no RLS. The trade-off is that every new query must go through that layer and be reviewed. Choose one model deliberately; the dangerous state is a mix of both that nobody has written down.
2. Sign-in that covers only the happy path
Sign-up and sign-in usually work. What needs checking:
- Password reset and sign-up give the same response whether or not an account exists (OWASP Forgot Password Cheat Sheet).
- Reset links are single-use and expire.
- Sign-in, reset and sign-up endpoints are rate limited.
- Signing out actually ends the session, and roles are checked on the server for every privileged action, not only hidden in the UI.
3. Payments without verification
A webhook handler that trusts any POST with a Stripe-shaped body lets anyone who finds the URL mark orders as paid. Stripe signs every event and also warns that an endpoint may receive the same event more than once (Stripe webhook docs). A simplified Next.js route handler:
// app/api/stripe/webhook/route.ts (simplified)
import Stripe from "stripe";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);
const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET!;
export async function POST(req: Request) {
const signature = req.headers.get("stripe-signature");
if (!signature) return new Response("Missing signature", { status: 400 });
const body = await req.text(); // the raw body; parsing JSON first breaks verification
let event: Stripe.Event;
try {
event = stripe.webhooks.constructEvent(body, signature, webhookSecret);
} catch {
return new Response("Invalid signature", { status: 400 });
}
// Record event.id with a unique constraint; skip if it was already seen.
const isNew = await recordEventOnce(event.id);
if (!isNew) return new Response(null, { status: 200 });
await enqueueForProcessing(event); // keep slow work out of the request
return new Response(null, { status: 200 });
}
If the handler runs in a Supabase Edge Function (Deno) rather than Node, use the async variant, constructEventAsync, with Stripe's Web Crypto provider. The same two rules apply to any provider that sends webhooks: verify the sender, and make processing safe to repeat.
4. Errors that all look the same
A generated catch block often logs the error and returns "Something went wrong". In production you need to tell apart a rate limit (retry later), an invalid request (show the user what to fix), an expired session (sign in again) and an outage (alert someone). A simplified shape:
type ExternalCallError =
| { kind: "rate_limited"; retryAfterMs: number }
| { kind: "unavailable" }
| { kind: "invalid_request"; field?: string }
| { kind: "unauthorised" };
Each kind gets its own status code and user message, and the unexpected ones are reported somewhere a person will see them.
5. Nothing that proves it still works
AI tools change several files per prompt. Without a few end-to-end tests, a fix in one place silently breaks another. The minimum: sign-up, the core action, payment, and a test that user A cannot read user B's data. Adding automated accessibility checks to the same suite (for example with axe-core in Playwright) catches keyboard and labelling problems early.
Want these five areas checked against your Bolt app, in writing?
How a fixed-price scope can be written
Fixed price works when the work is knowable before it starts. For an existing Bolt app it usually is, but only after someone has read the code. The sequence that keeps the price honest:
- Read the repository and run the app with two test accounts.
- Write the baseline: the specific items that will be true at the end (for example, "RLS policies on these nine tables, tested per role", "Stripe webhooks verified and idempotent", "tests for these four flows"), and what is explicitly out of scope.
- Agree it before work starts. Anything outside the written baseline is a separate decision, not a silent extension.
Soatech's Prototype to Production (€3,500, about a week) is built this way: an AI-built prototype brought to a written production baseline, with larger gaps scoped separately. Prices for it and the other engagements are listed in the engagements section. The week is a typical duration for an app whose gaps fit a baseline, not a guarantee for every Bolt app.
When a different scope is needed
A one-week baseline is the wrong shape when:
- The data model has to change. The app stores data per user but the product sells to teams, or records that should be shared are duplicated. That is a redesign, scoped on its own.
- The missing pieces are features, not hardening. A new billing model, an admin area or an AI workflow is building work. One agreed feature fits a Production Sprint (€5,000, about two weeks); a stream of them fits an ongoing Embedded Architect engagement.
- Real users and data already exist and every change needs a migration plan.
- There are several apps or services, or the stack is far from a standard React and Supabase or Next.js setup.
- Nobody knows yet which of these applies. Then the right first step is a diagnosis, not a build: the Production Audit (€1,500, 3–5 working days, no code changes) tells you what blocks a safe launch and which kind of work it is.
A self-check before you talk to anyone
- Signed in as user B, can you open a record that belongs to user A by changing an ID?
- Does password reset respond identically for an email that has no account?
- Does your Stripe handler call
constructEventon the raw body, and ignore repeated event IDs? - Can you tell from your logs the difference between a rate limit and an outage?
- Is there at least one automated test you run before every release?
Any "no" is a gap worth closing before paying users arrive. The handover checklist covers what to prepare if someone else will close it.
Working on a feature this article touches? A 30-minute call is the quickest way to scope it.
Discuss your project