AI Software Factory for small teams, from ticket to reviewable pull request
Build an AI Software Factory for a small team. Follow a CSV export ticket through acceptance criteria, CI, preview and review, and measure the time saved.
Build an AI Software Factory for a small team. Follow a CSV export ticket through acceptance criteria, CI, preview and review, and measure the time saved.
A script injected through a comment field, your checkout page framed by a phishing site, a connection downgraded from HTTPS to HTTP. HTTP security headers block all of these. Here are the five that matter and how to roll out CSP without breaking your site.
In job ads and at conferences, Kubernetes is the default. For a five-person team with three services, it often means months of infrastructure work instead of product work. This post counts the real cost of Kubernetes and offers five questions to tell whether it's time.
Cache-Control is one header with a few words, but each word changes how browsers, CDNs and servers behave. This post explains each directive simply, suggests a safe recipe for every kind of response, and shows two costly mistakes.
If your product serves Persian or Arabic readers, your fonts are probably several times heavier than a Latin font, and you likely ship several weights. The result is invisible text, then a reflow. This guide shows how to shrink them, what to preload and how to remove the jump.
TTFB is the time from a user's request to the first byte of the response, and in Next.js it's made of network, middleware, data fetching and rendering. This post shows how to measure each layer separately and fix the most common culprits with code examples.
When you launch a blog or docs next to your app, the first question is where they live. This post looks at what each choice means for SEO, cookies and login, Search Console and deployment, and shows how to run a subfolder without merging projects.
Scrapers copying your listings, credential-stuffing bots and fake signups eat server capacity and threaten accounts. This guide covers rate-limiting algorithms, where to enforce them and how to stop bad bots without punishing real users.
A monorepo makes shared code easy and deployment a little trickier: where each app lives, where it builds from, and when it doesn't need a build at all. Based on a real Next.js monorepo, this post covers each app's deploy settings and the common traps.
The first person to notice your site is down shouldn't be a customer. This post explains the four basic signals (latency, traffic, error rate and saturation), suggests sensible alert thresholds for each, and shows how to write logs that help on incident day.
Date bugs only appear at night, at month end or on holidays, which is why they survive testing. Add a non-Gregorian calendar such as the Persian (Jalali) calendar and there's one more layer. This guide gives one simple rule for storing, showing and reporting dates.
We built a 30-page marketing site with a CMS twice: once static, once server-rendered. This post puts the numbers side by side, shows where static wins, where SSR is necessary, and how ISR gets you the best of both.
Many small teams have a 200-line YAML file that tests, SSHes into the server, copies files and restarts services. This post suggests letting CI only check code quality and handing deployment to the platform, with a sample workflow you can use today.
WebSockets are effortless in development, then meet proxy timeouts, multiple instances and flaky mobile networks in production. Here's when you really need them, when SSE or polling is enough, and how to keep connections stable.
On a traditional server, uploads sit on the same disk as the code. On platforms and containers, every deploy is a fresh container and each instance has its own disk. This post explains why files go missing, how object storage solves it, and how to migrate the files you already have.
A real Laravel app isn't just the web: there's a queue worker for SMS and email, a scheduler for nightly jobs, and a storage folder for files. This post shows how to run those three parts separately and reliably on a cloud platform, without losing queued jobs during deploys.
Nightly reports, temp-file cleanup, reminder emails, payment status checks: every app has scheduled work. Here's how to make sure each job runs exactly once, that you hear about failures and that time zones don't surprise you.
Providers talk about 99.9% and 99.99% uptime, but few people work out how many minutes each nine is, what doesn't count against it, and what the compensation really is. This post unpacks the numbers and shows what your app's real uptime is made of.
Let's Encrypt certificates are free and valid for 90 days, which means four chances a year to forget. This post explains how automatic issuing and renewal work, what common browser errors actually mean, and how to find and fix each one fast.
One-time codes over SMS are the default sign-in in much of the world. Without the right limits, they let attackers guess codes and let bots spend your SMS budget on thousands of random numbers. Here's how to set code length, lifetime, send and attempt limits, and storage.
Most teams roll back like this: revert, push, wait for the build. Using a real incident, this post shows why that's slow at the worst possible moment, how rolling back to the previous artifact works, and what no rollback can undo.
One staging server for the whole team means only one change can be reviewed at a time, and nobody knows whose change a bug belongs to. This post shows how a preview per branch changes the workflow for designers, product managers and testers, and what to set up right from the start.
With redirect-based payment gateways, the customer leaves your site to pay and may never come back, come back twice or lose signal halfway. This guide shows how to write callbacks and verification so every payment is recorded exactly once.
Serverless is exciting at conferences, containers in job ads, and PaaS in projects that have to ship on time. This post takes one real shop API through all three models and shows where each one shines and where it causes trouble.
The full-resolution photo your designer exported crawls on a phone over mobile data. next/image does most of the work for you, but only if sizes, priority and formats are set correctly. Here are those settings on a real product page.
Turn DEBUG off and the CSS disappears, ALLOWED_HOSTS returns 400, and migrations have to be run by hand after each deploy. This post prepares a Django project step by step for deployment on a platform: settings, static files, the database and Celery.
Many people put their first Node.js app on the same cPanel host as their WordPress site, then find out why it dies every few hours. This post explains what Node.js needs from a host and compares the three common options.
Redis can turn a two-second query into a two-millisecond lookup. Cache without a plan, though, and you'll serve old prices, wrong stock levels and edits that seem to vanish. Here are the three common patterns, how to pick expiry times, and how to invalidate correctly.
The server is inside Iran, yet on outage day the login page stays blank and the pay button does nothing. This post shows how to find hidden foreign dependencies, which to remove, and how to build the rest so that if they fail, only they fail.
For a WordPress blog, the difference between domestic and foreign hosting is a few milliseconds. For a shop or app whose revenue depends on users in Iran, this choice decides what happens during an international outage, how you pay, and how safe your account is.
RTL and bilingual sites lose ground on technical details: look-alike characters that break matching, zero-width non-joiners that get stripped, percent-encoded slugs and an English version Google treats as a competitor. This guide is for teams shipping Persian or other RTL content.
FTP uploads and editing files in cPanel's File Manager work for a small site, until two people change the same file at once. This guide walks through moving a PHP or Node.js site from cPanel to Git-based deploys, including the database, uploads, email and DNS.
Many teams start every deployment by writing a Dockerfile. This post shows where a framework preset is enough, where you genuinely need a custom container, and what not to forget if you do write one.
Most Node.js images weigh over a gigabyte because compilers, the npm cache and dev dependencies all ship to production. A multi-stage build keeps only what the app needs to run. Here's a production-ready Dockerfile, line by line.
Why does a key you marked "hidden" in your dashboard show up in your site's JavaScript? The difference between build-time and runtime variables, separate values for each environment, and what to do in the first minutes after a key leaks.
A restart is the simplest way to deploy, and the seconds the service is down are the seconds orders fail. This post lists where downtime really comes from, compares three common release strategies, and shows how to change your database without an outage.
Most teams discover on the worst possible day that their backup is incomplete, the key is lost or a restore takes six hours. This guide covers RPO and RTO, the 3-2-1 rule, logical versus physical backups, and why you should rehearse restores.
You've connected the domain, but half the team still sees the old site. This post explains which record goes on the apex and which on www, how TTL slows a switch down, and how to use dig to see what the rest of the world actually sees.
Each page's rendering mode decides what your server has to do. This post covers what SSG, ISR, SSR and PPR need from your infrastructure, how standalone output works, and what breaks once the app runs on more than one instance.
Every PostgreSQL connection costs memory and a dedicated process. When your app runs several instances and each opens dozens of connections, the database hits its ceiling long before the CPU does. Here's what a pool does, how to size it, and when you need PgBouncer.
The sale SMS goes out at 9pm, and in the first five minutes you get ten times a normal day's traffic. This post covers what breaks first under that load, how to load-test properly, and what to do from two weeks before until the morning after.
Foreign-card payments, the risk of a suspended account and unreliable access to vercel.app push teams in Iran to look elsewhere. But renting a server and running next start covers only a small part of what Vercel did. Here is the full list, and how the alternatives compare.
"Put a CDN in front of it" is the reflex answer to every slow site. But a CDN only speeds up what can be cached. Here's how to tell which parts of your app benefit, which don't, and what to measure before you sign up.
The VPS price is on the invoice. The hours spent on patches, SSL renewals, deploy scripts and midnight restarts are not. This post counts those hours, compares them with a platform, and is honest about when a VPS is still the better call.