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.
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.
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.
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.
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.
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.
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.
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.
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.