<?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: Linc</title>
    <description>The latest articles on DEV Community by Linc (@lincchad).</description>
    <link>https://dev.to/lincchad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4075717%2F6c5487de-c31b-4b2c-b387-23b790f46e8c.png</url>
      <title>DEV Community: Linc</title>
      <link>https://dev.to/lincchad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lincchad"/>
    <language>en</language>
    <item>
      <title>The AGENTS.md file I drop into every client repo before my coding agent touches it</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Wed, 25 Nov 2026 00:07:12 +0000</pubDate>
      <link>https://dev.to/lincchad/the-agentsmd-file-i-drop-into-every-client-repo-before-my-coding-agent-touches-it-5fb2</link>
      <guid>https://dev.to/lincchad/the-agentsmd-file-i-drop-into-every-client-repo-before-my-coding-agent-touches-it-5fb2</guid>
      <description>&lt;p&gt;I build most client sites with a coding agent now. Claude Code mostly, Cursor when I want to watch the diff. The agent is fast, but the first few months it kept doing dumb stuff on client repos. Renaming image folders and breaking old URLs. Hardcoding the phone number in five places. Deleting a JSON file the client had just edited. Running a deploy from the wrong folder.&lt;/p&gt;

&lt;p&gt;None of that was the agent being bad. It just didn't know the rules of my agency. So now every client repo gets an &lt;code&gt;AGENTS.md&lt;/code&gt; file in the root before the agent touches anything. Claude Code reads &lt;code&gt;CLAUDE.md&lt;/code&gt;, Cursor reads its rules, Codex reads &lt;code&gt;AGENTS.md&lt;/code&gt;. I keep one file and symlink the others to it so they all get the same brief.&lt;/p&gt;

&lt;p&gt;Here's roughly what goes in mine and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What this site is, in three lines
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Client: Harbour Physio (harbourphysio.com.au)
&lt;/span&gt;Astro static site, 9 pages, migrated from WordPress in 2026.
Audience: local patients booking appointments. Phone calls matter more than anything else.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sounds obvious but it changes the agent's choices. When it knows phone calls are the goal it stops burying the number in the footer.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Files the agent must not touch
&lt;/h2&gt;

&lt;p&gt;This is the most important section. On my sites the client edits their own content (hours, team bios, prices) and that lives in &lt;code&gt;/data/*.json&lt;/code&gt;. If the agent "tidies up" those files it overwrites the clients changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Do not edit
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;public/data/*.json  (client edits these through /edit, pull latest before any change)
&lt;span class="k"&gt;- &lt;/span&gt;public/_redirects    (old WordPress URLs, only append, never remove lines)
&lt;span class="k"&gt;- &lt;/span&gt;src/assets/legal/*   (client supplied, don't reword)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;_redirects&lt;/code&gt; line saved me twice. Agents love deleting stuff that looks unused, and a 301 from &lt;code&gt;/our-services-2/&lt;/code&gt; looks very unused untill Google stops sending traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Where facts live
&lt;/h2&gt;

&lt;p&gt;Business name, phone, address, ABN, booking link. One file, &lt;code&gt;src/site.ts&lt;/code&gt;, and the agent is told to import from it and never hardcode.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Single source of truth
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Contact details, hours fallback, socials: src/site.ts
&lt;span class="k"&gt;- &lt;/span&gt;Never hardcode phone/email/address in components
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the client changes their number I change one line and the agent greps to confirm nothing else has it.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Style rules that are actually mine
&lt;/h2&gt;

&lt;p&gt;Not "write clean code". Specific stuff:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tailwind only, no new CSS files&lt;/li&gt;
&lt;li&gt;Images go in &lt;code&gt;src/assets&lt;/code&gt; and use &lt;code&gt;&amp;lt;Image /&amp;gt;&lt;/code&gt;, nothing raw in &lt;code&gt;public/&lt;/code&gt; except favicons&lt;/li&gt;
&lt;li&gt;No new npm packages without asking me&lt;/li&gt;
&lt;li&gt;No client side JS unless the page genuinely needs it (forms don't, they post natively)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last one stops the agent reaching for React for a contact form. The form is plain HTML with a &lt;code&gt;data-&lt;/code&gt; attribute and the host handles submissions. Zero JS.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The checks it runs before saying "done"
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Before you finish
&lt;/span&gt;1. npm run build passes with no warnings
2. Every internal link resolves (npm run check:links)
3. Every page has a unique title and meta description
4. Lighthouse mobile perf &amp;gt;= 95 on home and contact
5. grep dist/ for "wp-content" returns nothing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I wrote about the checks themselves before, the point here is that they're written &lt;em&gt;in the repo&lt;/em&gt;. A new agent session doesn't need me to remember them.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. How to ship, and when not to
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Deploy
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Preview: npx novence deploy (gives a preview URL, send that to me)
&lt;span class="k"&gt;- &lt;/span&gt;Production: only when I say "ship it". Never deploy to prod on your own.
&lt;span class="k"&gt;- &lt;/span&gt;Never touch DNS. Ever.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All my client sites sit on &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; so the deploy line is the same in every repo, which is half the reason the file works. If each client was on a different host this section would be a mess. Some days I deploy through the MCP server instead of the CLI, same rule applies, preview first.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. A "things that went wrong" log
&lt;/h2&gt;

&lt;p&gt;The bottom of the file is a running list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Gotchas
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;2026-10: client logo has a white box on dark bg, use logo-transparent.svg
&lt;span class="k"&gt;- &lt;/span&gt;2026-11: /book redirects to Cliniko, don't build a booking page
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every time the agent screws something up, one line goes here. It doesn't repeat it. This section ends up being the most valuable part after a few months.&lt;/p&gt;

&lt;h2&gt;
  
  
  The template
&lt;/h2&gt;

&lt;p&gt;I keep a starter &lt;code&gt;AGENTS.md&lt;/code&gt; in my agency template repo, so a fresh migration starts with sections 2 to 6 filled in and I only write the client specific bits. Takes about ten minutes per site.&lt;/p&gt;

&lt;p&gt;The difference is big. Before this file I'd review every diff line by line. Now I mostly review the preview URL and the check output, and the agent asks before it does anything risky because the file tells it what risky means.&lt;/p&gt;

&lt;p&gt;If you're running client work through a coding agent and you don't have one of these yet, start with just the "do not edit" and "deploy" sections. Those two alone stop most of the expensive mistakes.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>astro</category>
      <category>freelance</category>
    </item>
    <item>
      <title>How I price a WordPress to Astro migration (and the retainer that makes it worth it)</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Mon, 23 Nov 2026 00:12:46 +0000</pubDate>
      <link>https://dev.to/lincchad/how-i-price-a-wordpress-to-astro-migration-and-the-retainer-that-makes-it-worth-it-57f6</link>
      <guid>https://dev.to/lincchad/how-i-price-a-wordpress-to-astro-migration-and-the-retainer-that-makes-it-worth-it-57f6</guid>
      <description>&lt;p&gt;Every agency I talk to that's moving clients off WordPress hits the same wall. Not the build. The build is the easy part now, a coding agent can rebuild a brochure site in Astro in an afternoon. The wall is the quote. What do you actually charge for a migration, and how do you stop it being a one-off job that leaves you with no income next month?&lt;/p&gt;

&lt;p&gt;Here's how I price them now. No magic formula, just the stuff that stopped me under-quoting.&lt;/p&gt;

&lt;p&gt;All the dollar figures below are &lt;strong&gt;example numbers&lt;/strong&gt; to show the structure. Plug in your own rates.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Quote the audit, not the site
&lt;/h2&gt;

&lt;p&gt;I used to quote off the homepage. Big mistake. A site that looks like five pages can be 300 blog posts, two form plugins, a booking widget and a media library with 4,000 images in it.&lt;/p&gt;

&lt;p&gt;So now the first thing I sell is a small fixed-price audit. My agent crawls the site and gives me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;page and post count (from the sitemap plus a crawl, because sitemaps lie)&lt;/li&gt;
&lt;li&gt;every plugin that actually does something on the front end (forms, booking, popups, galleries)&lt;/li&gt;
&lt;li&gt;media library size and how much of it is actualy used&lt;/li&gt;
&lt;li&gt;current top pages from Search Console so I know what URLs can't break&lt;/li&gt;
&lt;li&gt;where the DNS and email live&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That audit is the basis for the quote. If they don't go ahead, they still got a useful report and I got paid for the time. Most go ahead.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Price in three buckets
&lt;/h2&gt;

&lt;p&gt;Once I have the audit I split the job into three buckets. Clients get it straight away when it's laid out like this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bucket A: the rebuild.&lt;/strong&gt; Templates, layout, design tweaks. With an agent doing the grunt work this is smaller than it used to be. Example: a 6 to 10 page brochure site might be a flat fee.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bucket B: the content move.&lt;/strong&gt; This scales with volume. 10 pages is nothing, 300 posts with featured images and categories is a proper job. I price this per batch, not per post, so it doesn't look scary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bucket C: the risky bits.&lt;/strong&gt; Redirect map, forms, DNS cutover, anything that touches email. This is where migrations go wrong, so it's where I put margin. Clients don't argue with "this is the part that protects your Google rankings and your inbox".&lt;/p&gt;

&lt;p&gt;Example quote shape (made up numbers):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Audit                 $300   (credited if they go ahead)
A. Rebuild            $1,800
B. Content (2 batches) $900
C. Redirects/forms/DNS $700
--------------------------------
Total                 $3,400
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The point isn't the numbers. It's that each line has a reason the client can see.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Don't sell hosting, sell "looking after it"
&lt;/h2&gt;

&lt;p&gt;This is where most of the money is, and where I was leaving it on the table.&lt;/p&gt;

&lt;p&gt;On WordPress the monthly fee was easy to justify: updates, plugin patches, backups, security. When you move to a static Astro site most of that just goes away. Which is great for the client, but if your retainer was "we update your plugins" you just deleted your own retainer.&lt;/p&gt;

&lt;p&gt;So I reframed it. The monthly fee is for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the site staying up, on a custom domain, with SSL sorted&lt;/li&gt;
&lt;li&gt;small content changes (or the client does them themselves, more on that below)&lt;/li&gt;
&lt;li&gt;form submissions landing where they should&lt;/li&gt;
&lt;li&gt;a short monthly report: traffic, top pages, any 404s I fixed&lt;/li&gt;
&lt;li&gt;me being the person they call&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example: a small brochure site might be $60 to $120 a month depending on how much hand holding they want. Again, your numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Know your real cost per site
&lt;/h2&gt;

&lt;p&gt;This bit is boring but it's where the margin is. If every client is on a different host, a different cPanel, a different login, your cost isn't just the hosting bill, it's your time remembering where everything lives.&lt;/p&gt;

&lt;p&gt;I put every client site on &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; now. One account, one CLI, so deploying any client is the same command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx novence deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My agent can also deploy through the MCP server, so the build, check and ship loop doesn't need me clicking around a dashboard. The hosting line on my spreadsheet is one plan spread across all the clients, so the per-site cost is small and predictable, and the rest of the retainer is basicaly margin for my time.&lt;/p&gt;

&lt;p&gt;Rough maths I run for each client (example numbers):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Retainer           $90/mo
Hosting share       $3/mo
My time (est.)     ~30 min/mo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the time line creeps up, the retainer goes up next renewal. Simple.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Let clients edit the small stuff, and charge less for it
&lt;/h2&gt;

&lt;p&gt;Counterintuitive one. I give clients a way to edit things like opening hours, prices and team bios themselves (simple JSON data files plus a passwordless edit page, no WordPress admin). I charge a bit less on the retainer for that.&lt;/p&gt;

&lt;p&gt;Why? Because the jobs I hate are "can you change the phone number" emails at 9pm. Those are low value, high interruption. Letting them do it themselves means my retainer time goes to stuff that actually matters, and they feel in control. Churn has been way lower since.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Bundle the migration into the first year
&lt;/h2&gt;

&lt;p&gt;The last trick: for clients who flinch at the upfront number, I offer to roll part of the migration into a 12 month retainer. Smaller deposit, slightly higher monthly for the first year, then it drops to the normal rate.&lt;/p&gt;

&lt;p&gt;It turns a one-off project into recurring revenue, and the client gets a predictable bill. Just make sure the contract says what happens if they leave early.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell myself a year ago
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Charge for the audit. It qualifies the client and stops under-quoting.&lt;/li&gt;
&lt;li&gt;Put margin on the risky bits, not the design.&lt;/li&gt;
&lt;li&gt;Your retainer can't be "plugin updates" anymore, so make it about outcomes and being their person.&lt;/li&gt;
&lt;li&gt;Keep every client on one host so your cost per site is a known number.&lt;/li&gt;
&lt;li&gt;Let clients do tiny edits themselves. You'll thank yourself.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're pricing migrations differently I'd genuinely like to hear how, drop it in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>wordpress</category>
      <category>freelance</category>
    </item>
    <item>
      <title>How to set up a web design agency run by a team of Grok Bots (every site on Novence)</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Sat, 21 Nov 2026 00:06:08 +0000</pubDate>
      <link>https://dev.to/lincchad/how-to-set-up-a-web-design-agency-run-by-a-team-of-grok-bots-every-site-on-novence-43j7</link>
      <guid>https://dev.to/lincchad/how-to-set-up-a-web-design-agency-run-by-a-team-of-grok-bots-every-site-on-novence-43j7</guid>
      <description>&lt;p&gt;I've been running client sites with a coding agent for a while now. The next step was obvious: stop being the glue between every tool and let a small team of bots do the boring daily stuff, while I keep the decisions.&lt;/p&gt;

&lt;p&gt;This is the setup I'd use if I was starting a web design agency from scratch today with &lt;a href="https://x.ai/bot" rel="noopener noreferrer"&gt;Grok Bot&lt;/a&gt;. Each bot has one job, runs on a schedule, and every client site lands in one place on &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt;. I'll keep it practical: which bots, what they own, the actual routine prompts, and where you (the human) stay in the loop.&lt;/p&gt;

&lt;p&gt;No made up numbers in here. Where I show a figure it's labelled as an example.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Grok Bot works, in two minutes
&lt;/h2&gt;

&lt;p&gt;The bits that matter for an agency:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multiple bots, each with its own role.&lt;/strong&gt; You create a bot per job (growth, ops, content, product...). Each one has its own instructions and memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A real computer.&lt;/strong&gt; Your bots work on a persistent cloud computer with a browser, a command line and files. Every bot gets its own screen on it, and they share files and browser sign-ins. So if your build bot writes a site to disk, your ops bot can see it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Routines.&lt;/strong&gt; A task you've got working once can be saved as a routine that runs on a schedule (or when an email, Slack message, GitHub event or webhook comes in).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connectors.&lt;/strong&gt; Apps and MCP servers the bots call directly, instead of clicking through websites.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask first rules.&lt;/strong&gt; You can make sending, publishing and deleting need your approval. This is the part I care most about for client work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The docs say it plainly: give work its own bot when it has its own sources, schedule or approval needs. That maps really well to an agency.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Decide who owns what
&lt;/h2&gt;

&lt;p&gt;Four bots is plenty to start. One owner per step, no overlap.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Bot&lt;/th&gt;
&lt;th&gt;Owns&lt;/th&gt;
&lt;th&gt;Never does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Growth&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Finding leads, scoring them, drafting outreach&lt;/td&gt;
&lt;td&gt;Sends anything without approval&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Builder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Building sites in Astro, deploying previews and production to Novence&lt;/td&gt;
&lt;td&gt;Touches DNS on a live client domain without approval&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ops&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Uptime, forms, broken links, monthly reports, renewals&lt;/td&gt;
&lt;td&gt;Emails clients directly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Content&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Blog posts, case studies, client page updates from briefs&lt;/td&gt;
&lt;td&gt;Publishes to a client site without a preview link first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Write each bots role into its profile. Short and blunt works better than long. Something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You are Builder for my web agency. You build small business sites in Astro
and host every site on novence.ai. You deploy previews freely. Production
deploys, custom domains and anything that touches a client's DNS need my
approval first. Keep every client in /workspace/clients/&amp;lt;slug&amp;gt;/.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Connect the tools
&lt;/h2&gt;

&lt;p&gt;The one connector that makes this whole thing work is deploys. Builder needs to ship a site without me copying files around.&lt;/p&gt;

&lt;p&gt;Two options, both fine:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP.&lt;/strong&gt; Add the Novence MCP server as a custom connector:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://api.novence.ai/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then the bot can create sites and deploy straight from a tool call.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CLI.&lt;/strong&gt; Builder has a terminal on its computer, so this works too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /workspace/clients/smith-plumbing
npm run build
npx novence deploy ./dist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I use the CLI inside build scripts and MCP when I'm asking for one off stuff in chat. Every client on one host means one place to check, one bill, one set of redirect and form rules.&lt;/p&gt;

&lt;p&gt;Other connectors worth adding: your email (Gmail or Outlook) for drafts, GitHub if you keep client sites in a repo, and whatever you use for invoices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: The lead finding routine (Growth)
&lt;/h2&gt;

&lt;p&gt;This runs weekday mornings. It's the one I'd tune the most.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Every weekday at 9am:
1. Search for local businesses in &amp;lt;city&amp;gt; in these trades: plumbers,
   physios, cafes, accountants. Skip any I've already logged in
   /workspace/leads/leads.csv.
2. For each one, open their website in the browser. Note: is it
   WordPress, is it mobile friendly, does it load slow, is the
   contact form broken, is the copyright year old.
3. Pick the 5 with the clearest single problem. For each, write one
   line on the problem and attach a screenshot.
4. Draft a short outreach email for each (under 80 words, one concrete
   issue, no pitch deck). Do NOT send. Put the drafts in front of me
   for approval.
5. Append everything to leads.csv.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key line is step 4. Growth drafts, I approve. Cold email under my name is not something I want a bot doing on its own, and Grok Bot is built to ask first before sending anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: The build and deploy routine (Builder)
&lt;/h2&gt;

&lt;p&gt;This one isn't on a timer. Growth or I hand it a brief when a client says yes. I save it as a skill so it runs the same every time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;When I give you a new client brief:
1. Create /workspace/clients/&amp;lt;slug&amp;gt;/ from my Astro starter.
2. If they have an old WordPress site, export the pages and posts,
   convert to content collections, and build an old-to-new URL map
   into public/_redirects.
3. Put editable stuff (hours, prices, team, specials) in
   /data/*.json so the client can change it later from /edit
   without needing me.
4. Use the native Novence form for the contact page.
5. Build, then deploy a preview with npx novence deploy.
6. Run the pre-launch checks: every page 200, every redirect 301,
   form submits, no wp-content URLs left in dist/, Lighthouse
   mobile above 90.
7. Send me the preview URL and the check results.
8. Only after I say "ship it": deploy to production and walk me
   through the custom domain DNS records. Do not change DNS yourself.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I've written up most of those individual steps before (redirect maps, forms, client editing). The point here is chaining them so a bot does it end to end and stops at the two places where a mistake actually costs something: going live and DNS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: The monthly check and report (Ops)
&lt;/h2&gt;

&lt;p&gt;First business day of the month, for every client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;On the 1st of every month at 8am, for each site in
/workspace/clients/sites.json:
1. Load the homepage and contact page. Flag anything not 200.
2. Submit a test on the contact form and confirm it arrived.
3. Pull last month's Novence analytics: visits, top pages, top
   referrers, 404s.
4. Add any real 404s to that site's _redirects and redeploy the
   preview. List them for me.
5. Write a 3 bullet summary per client in plain english. Use only
   numbers from the analytics. If a number is missing say so,
   never guess.
6. Give me all the summaries as drafts. I'll send them.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example of what comes back (example data, not a real client):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;smith-plumbing (example)
- 1,240 visits, up from 1,100. Most from Google Maps.
- "Emergency plumber" page is the top page again.
- 2 broken old links fixed with redirects, preview ready.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That no-guessing line in step 5 is important. Without it a model will happily round things or fill gaps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Content (optional at the start)
&lt;/h2&gt;

&lt;p&gt;I'd add this bot once there's 5+ clients. It writes blog posts or service pages from a brief, commits them to the client's folder, deploys a preview, and sends me the link. Clients who like editing their own stuff use &lt;code&gt;/edit&lt;/code&gt;, everyone else gets content done by this bot with me reviewing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the human stays in the loop
&lt;/h2&gt;

&lt;p&gt;This is the whole list for me:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Any email or message to a lead or client.&lt;/strong&gt; Bots draft, I send.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production deploys for a new site.&lt;/strong&gt; Preview first, always.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DNS changes.&lt;/strong&gt; Bot tells me the records, I add them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pricing and scope.&lt;/strong&gt; Bots can quote from a price sheet I wrote. They don't negotiate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anything deleting stuff.&lt;/strong&gt; Old sites, old hosting accounts, client data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Set these as ask first rules in each bots instructions, and check the approval prompts actualy show up before you trust it with a real client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I'd do differently from day one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One folder per client, one sites.json.&lt;/strong&gt; Every bot reads the same source of truth. Shared files on the bot computer make this easy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Save skills before routines.&lt;/strong&gt; Get a task right once in chat, save it as a skill, then schedule it. Scheduling a half working prompt just gives you half working output every morning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep secrets out of chat.&lt;/strong&gt; Use the vault for logins, never paste a password into a message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One host for everything.&lt;/strong&gt; Having every client on novence.ai means Ops checks one dashboard and Builder deploys the same way every time. Mixing hosts is where agencies lose an afternoon each month.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrap up
&lt;/h2&gt;

&lt;p&gt;The bots don't replace the part of the job that's actually about people: picking clients, talking to them, deciding what's worth building. What they take is the daily grind of finding leads, building to a checklist, deploying, checking, and writing reports. That's a lot of hours back.&lt;/p&gt;

&lt;p&gt;If you want to try the deploy side first, point your coding agent at &lt;code&gt;https://api.novence.ai/mcp&lt;/code&gt; or run &lt;code&gt;npx novence deploy&lt;/code&gt; on any Astro build and go from there.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>astro</category>
      <category>freelance</category>
    </item>
    <item>
      <title>The one-page monthly report my coding agent writes for every client site</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Thu, 19 Nov 2026 00:04:42 +0000</pubDate>
      <link>https://dev.to/lincchad/the-one-page-monthly-report-my-coding-agent-writes-for-every-client-site-49</link>
      <guid>https://dev.to/lincchad/the-one-page-monthly-report-my-coding-agent-writes-for-every-client-site-49</guid>
      <description>&lt;p&gt;Most of my clients came off WordPress with a Jetpack stats widget or a Google Analytics property nobody had logged into since 2019. When I move them to Astro I dont rebuild that. Instead they get one short email a month that my coding agent writes, and honestly its the thing that keeps them on the care plan.&lt;/p&gt;

&lt;p&gt;Here is how I set it up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just give them a dashboard
&lt;/h2&gt;

&lt;p&gt;I tried that. Nobody logs in. A small business owner does not want to learn what a "session" is. They want to know three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Are people finding the site?&lt;/li&gt;
&lt;li&gt;Is anything broken?&lt;/li&gt;
&lt;li&gt;Did the site make the phone ring?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the report answers those three questions and nothing else. If it takes more than a minute to read, I've failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: turn on cookieless analytics per site
&lt;/h2&gt;

&lt;p&gt;I host all my client sites on &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; and the analytics there are opt in, cookieless and done at the edge. No script in the HTML, so no cookie banner just for stats and no extra JS slowing the page down. I get pageviews, top pages, referrers, countries and 404s, which is genuinely all a plumber or a cafe needs.&lt;/p&gt;

&lt;p&gt;The bonus of no-script analytics: ad blockers dont eat the numbers, so they are closer to real than what GA was showing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: keep a sites.json with the boring details
&lt;/h2&gt;

&lt;p&gt;I already keep a &lt;code&gt;sites.json&lt;/code&gt; in my agency repo (one entry per client). For reports I added a few fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"harbour-plumbing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"contact"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Dave"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dave@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"goal"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"quote form submissions"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"keyPages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/services/hot-water"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/contact"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"notes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Wants more hot water jobs, not blocked drains"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;goal&lt;/code&gt; and &lt;code&gt;notes&lt;/code&gt; fields matter more than the numbers. They let the agent write "your hot water page got 40% more visits" instead of a generic stat dump.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: the prompt I give the agent
&lt;/h2&gt;

&lt;p&gt;On the first of the month I open Claude Code in the repo (Cursor or Codex works the same) with the Novence MCP connected and run this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;For each site in sites.json:
- Pull last month's analytics (pageviews, top pages, referrers, countries, 404s)
  and the same numbers for the month before.
- Count form submissions for the month.
- Write a plain english report, max 150 words, to reports/&amp;lt;slug&amp;gt;/&amp;lt;yyyy-mm&amp;gt;.md
Rules:
- Lead with the client's goal from sites.json.
- Max 3 bullet points. No jargon (no "sessions", "bounce rate", "CTR").
- If a 404 has more than 5 hits, add it to a fix list, don't put it in the email.
- Never round up or guess a number. If data is missing say so.
- End with one suggestion we could do next month.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "never guess a number" line is there because the first time I ran it without that, it happily invented a percentage for a site with analytics switched off. Lesson learnt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: the 404 list is where the real value is
&lt;/h2&gt;

&lt;p&gt;After a WordPress to Astro move there are always a couple of old URLs I missed in the redirect map. Some random PDF from 2016, an old &lt;code&gt;?page_id=&lt;/code&gt; link a supplier still uses. The 404 report catches them.&lt;/p&gt;

&lt;p&gt;The agent puts anything with real traffic into &lt;code&gt;reports/fix-list.md&lt;/code&gt;, then I let it add the lines to &lt;code&gt;/_redirects&lt;/code&gt;, build and redeploy with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx novence deploy ./dist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Client never sees a broken link and I never have to explain what a 404 is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: what the email actually looks like
&lt;/h2&gt;

&lt;p&gt;Here is the shape of one (example numbers, made up client):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hi Dave, quick one for October.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your hot water page had 312 visits, up from 221 in September. Most came from Google.&lt;/li&gt;
&lt;li&gt;9 quote requests came through the site form.&lt;/li&gt;
&lt;li&gt;A few people were hitting an old link to your price list, I've pointed it to the new services page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next month: I'd like to add a short FAQ to the hot water page, it's getting the traffic so lets give it more to rank for.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's it. Three bullets and one idea. I read every draft before it goes out, fix the odd thing, and send it myself. Takes me maybe 10 minutes for all clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters for the business side
&lt;/h2&gt;

&lt;p&gt;The report is basically a monthly reminder that I'm doing something. The "next month" suggestion turns into small paid jobs surprisingly often. And when a client does churn, it's never because they forgot what they were paying me for.&lt;/p&gt;

&lt;p&gt;If you're moving clients off WordPress, dont rebuild their old stats setup. Pick the three questions they care about, let the agent do the counting, and keep the email short.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>freelance</category>
      <category>analytics</category>
    </item>
    <item>
      <title>How I pitch local businesses with a live preview of their own site</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Tue, 17 Nov 2026 00:08:39 +0000</pubDate>
      <link>https://dev.to/lincchad/how-i-pitch-local-businesses-with-a-live-preview-of-their-own-site-1cp3</link>
      <guid>https://dev.to/lincchad/how-i-pitch-local-businesses-with-a-live-preview-of-their-own-site-1cp3</guid>
      <description>&lt;p&gt;Cold emails that say "I can make your website better" get ignored. I know because I sent a pile of them when I started. What actually gets replies is showing the business owner their own site, rebuilt, on a link they can click on their phone.&lt;/p&gt;

&lt;p&gt;Here's the loop I run now with a coding agent (Claude Code mostly, Cursor sometimes). It takes me about an hour per prospect and most of that is the agent working while I do other stuff.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Pick the prospects by hand, not by scraping
&lt;/h2&gt;

&lt;p&gt;I keep a short list. Local trades, clinics, cafes, small law firms. The filter is simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Site is on WordPress and clearly hasnt been touched in years (copyright footer from 2019 is a dead giveaway)&lt;/li&gt;
&lt;li&gt;Slow on mobile, or a theme thats half broken&lt;/li&gt;
&lt;li&gt;The business itself is doing fine. Good reviews, still trading, phone number works&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last one matters most. A dying business wont pay for a website no matter how good your preview is.&lt;/p&gt;

&lt;p&gt;I dont let the agent pick prospects. It's bad at judging "is this business real and healthy", and I'd rather send 5 good pitches than 50 spammy ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Let the agent do the audit
&lt;/h2&gt;

&lt;p&gt;For each site I give the agent the URL and a short prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Audit https://example-plumbing.com.au for a rebuild pitch.
Check: mobile load time, broken links, missing meta titles/descriptions,
images without alt text, contact form working or not, https issues.
Pull the real content: services, phone, address, hours, about text.
Save the content to prospects/example-plumbing/content.json
Write audit.md with the 3 worst problems in plain english. No jargon.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "3 worst problems in plain english" bit is the important part. The owner doesnt care about CLS scores. They care that the call button doesnt work on mobile or that Google shows "Home - Just another WordPress site" as their title.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Build the preview from their real content
&lt;/h2&gt;

&lt;p&gt;Then the agent builds a one-page (sometimes three page) Astro site from content.json using my starter. Same brand colours, same logo, their actual services and phone number. No lorem ipsum ever. If a prospect sees fake text they assume the whole thing is a template.&lt;/p&gt;

&lt;p&gt;My AGENTS.md has a few rules for prospect builds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- Use only content from content.json. Never invent services, prices or testimonials.
- Keep their logo and brand colour. Don't "rebrand" them.
- Tap-to-call button above the fold on mobile.
- Run npm run check:launch before deploying.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "never invent testimonials" rule is there because the first time I didnt have it, the agent happily wrote three glowing reviews from people who dont exist. Not a great look in a pitch.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Deploy it to a preview URL
&lt;/h2&gt;

&lt;p&gt;Once it builds clean, the agent ships it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
npx novence deploy ./dist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I use &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; for this because the agent can deploy without me logging into anything, and I get a live URL back in a few seconds. Every prospect gets their own preview site. If they say no, it costs me basically nothing to leave it or delete it. If they say yes, the same project becomes the real site and I just point their domain at it later.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The pitch email is short
&lt;/h2&gt;

&lt;p&gt;Three parts, thats it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;One line about their business so they know it's not a blast (a recent review, a service they do)&lt;/li&gt;
&lt;li&gt;The link to the preview, plus "this is your current content, I just rebuilt it"&lt;/li&gt;
&lt;li&gt;The 3 problems from audit.md, one sentence each&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No pricing in the first email. No "let's jump on a call". Just the link. The preview does the selling, and honestly the reply rate is so much better than anything I wrote trying to sound clever.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Track it like a tiny pipeline
&lt;/h2&gt;

&lt;p&gt;The agent keeps a prospects.json with status for each one: audited, built, sent, replied, won, dead. Every Friday I ask it to tell me who to follow up with (sent more than 5 days ago, no reply) and I write those follow ups myself. One follow up only. After that they go to dead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting out
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Quality over volume. Five real previews a week beats a hundred templated emails&lt;/li&gt;
&lt;li&gt;The preview has to use their real stuff or it falls flat&lt;/li&gt;
&lt;li&gt;Make it easy to click on a phone, thats where most owners open it&lt;/li&gt;
&lt;li&gt;Keep your deploy step boring and fast so you dont skip it when your tired&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The coding agent didnt replace the sales part. It just made the "show, dont tell" part cheap enough that I can do it for every single prospect. That's been the biggest change to how I find clients.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>freelance</category>
      <category>ai</category>
    </item>
    <item>
      <title>How I keep every client site in one repo (and deploy them all from one place)</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Sun, 15 Nov 2026 00:08:31 +0000</pubDate>
      <link>https://dev.to/lincchad/how-i-keep-every-client-site-in-one-repo-and-deploy-them-all-from-one-place-3eoh</link>
      <guid>https://dev.to/lincchad/how-i-keep-every-client-site-in-one-repo-and-deploy-them-all-from-one-place-3eoh</guid>
      <description>&lt;p&gt;When I was on WordPress every client site lived somewhere different. Two on SiteGround, one on a cheap cPanel box the client bought themselves, a couple on WP Engine. Every login was a seperate password reset waiting to happen.&lt;/p&gt;

&lt;p&gt;After moving most of them to Astro I put every client site in one repo. It sounds like a small thing but it changed how I run the whole agency, so here is the setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  The folder layout
&lt;/h2&gt;

&lt;p&gt;Nothing clever. One folder per client, each one is a normal Astro project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;clients/
  bakery-surry-hills/
  physio-newtown/
  plumber-parramatta/
  ...
shared/
  components/
  checks/
AGENTS.md
sites.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I use pnpm workspaces so &lt;code&gt;shared/components&lt;/code&gt; (footer, contact form, cookie free analytics snippet, schema helpers) gets imported by every site. When I fix the footer once, every client gets it on the next deploy.&lt;/p&gt;

&lt;p&gt;I did try one repo per client for a while. It was fine at 5 sites and a mess at 15. Dependabot PRs alone were a part time job.&lt;/p&gt;

&lt;h2&gt;
  
  
  sites.json is the source of truth
&lt;/h2&gt;

&lt;p&gt;This file is the bit I'd keep even if I threw everything else away:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"bakery-surry-hills"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"www.example-bakery.com.au"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"plan"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"care"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"contact"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"owner@example-bakery.com.au"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"lastDeploy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-12"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Domain, which care plan they are on, who to email, when it last went out. My coding agent reads this before it touches anything, so when I say "update the opening hours for the bakery" it knows which folder and which domain without me spelling it out.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rules file
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;AGENTS.md&lt;/code&gt; at the root is short. The important lines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only change files inside the client folder you were asked about, unless the task says &lt;code&gt;shared/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If you change anything in &lt;code&gt;shared/&lt;/code&gt;, build every site, not just one.&lt;/li&gt;
&lt;li&gt;Never deploy to production without running &lt;code&gt;pnpm check&lt;/code&gt; for that site first.&lt;/li&gt;
&lt;li&gt;After a deploy, update &lt;code&gt;lastDeploy&lt;/code&gt; in &lt;code&gt;sites.json&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;shared/&lt;/code&gt; rule is the one that saved me. Early on the agent tweaked a shared component for one client and quietly broke the layout on three others. Now it has to build all of them and the build fails loud.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying is one loop
&lt;/h2&gt;

&lt;p&gt;Every site builds to its own &lt;code&gt;dist&lt;/code&gt;, and every site is hosted in the same place. I use &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;Novence&lt;/a&gt; for this so each client folder just does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; clients/bakery-surry-hills
pnpm build &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npx novence deploy ./dist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a shared change I have a tiny script that loops &lt;code&gt;sites.json&lt;/code&gt;, builds each one, runs the checks and deploys. Twenty sites takes a few minutes. Before this, a footer change across all clients was an afternoon of logging into different dashboards.&lt;/p&gt;

&lt;p&gt;Having all of them on one host also means one place for domains, forms and stats. When a client emails "is the site down?" I'm not trying to remember which provider they are on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Monthly care plan, actually done
&lt;/h2&gt;

&lt;p&gt;I sell a care plan per site. On WordPress that mostly meant plugin updates and praying. Now the monthly job is something I can hand to the agent:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;pnpm update&lt;/code&gt; across the workspace, build every site.&lt;/li&gt;
&lt;li&gt;Run the checks (broken links, missing meta, forms still post, redirects still 301).&lt;/li&gt;
&lt;li&gt;Deploy the ones that changed.&lt;/li&gt;
&lt;li&gt;Pull last month's visitor numbers per site and write a 5 line summary for each client.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I review the summaries, tweak the odd one and send them. Clients like getting the email more than they ever liked "we updated 14 plugins".&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start &lt;code&gt;sites.json&lt;/code&gt; on day one. Back-filling domains and contacts for 15 sites was boring.&lt;/li&gt;
&lt;li&gt;Keep client specific stuff out of &lt;code&gt;shared/&lt;/code&gt;. If only one client needs it, it lives in their folder, even if it's copy paste.&lt;/li&gt;
&lt;li&gt;Pin Astro across the workspace. Mixed versions made the agent's job way harder than it needed to be.&lt;/li&gt;
&lt;li&gt;Don't give the agent production deploy without the checks gate. It's fast enough that you'll be tempted. Dont.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're a small agency still juggling a pile of hosting logins, moving everything into one repo and one host is probably the highest value boring change you can make. It's not glamorous but it's the reason I can run 20 sites on my own.&lt;/p&gt;

&lt;p&gt;How are other people handling multi client setups? Monorepo, or one repo per client?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>freelance</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How I move 300 WordPress posts into Astro content collections</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Fri, 13 Nov 2026 00:00:40 +0000</pubDate>
      <link>https://dev.to/lincchad/how-i-move-300-wordpress-posts-into-astro-content-collections-4p05</link>
      <guid>https://dev.to/lincchad/how-i-move-300-wordpress-posts-into-astro-content-collections-4p05</guid>
      <description>&lt;p&gt;Last month I moved a client with about 300 blog posts off WordPress. The design was the easy bit. The content is what eats your week if you dont plan it. Here is the workflow I use now for getting those posts into Astro content collections.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Export, then look before you convert
&lt;/h2&gt;

&lt;p&gt;I export the WordPress XML from Tools &amp;gt; Export and also pull the posts through the REST API (&lt;code&gt;/wp-json/wp/v2/posts?per_page=100&lt;/code&gt;). The XML has the raw content, the API gives me clean fields for slug, date, categories and featured image id. Both go in a &lt;code&gt;migration/&lt;/code&gt; folder in the repo.&lt;/p&gt;

&lt;p&gt;Before converting anything I open ten random posts and check what is actually in them. Page builder shortcodes, &lt;code&gt;[gallery]&lt;/code&gt;, embedded forms, inline styles. You want to know that before you write a converter, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Convert to Markdown, keep the frontmatter boring
&lt;/h2&gt;

&lt;p&gt;A small Node script with &lt;code&gt;turndown&lt;/code&gt; does HTML to Markdown. Each post becomes &lt;code&gt;src/content/blog/&amp;lt;slug&amp;gt;.md&lt;/code&gt; with frontmatter like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Post title"&lt;/span&gt;
&lt;span class="na"&gt;pubDate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2023-04-12&lt;/span&gt;
&lt;span class="na"&gt;updated&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2024-01-03&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"First 150 chars or the Yoast description"&lt;/span&gt;
&lt;span class="na"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"news"&lt;/span&gt;
&lt;span class="na"&gt;cover&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./images/post-slug.jpg"&lt;/span&gt;
&lt;span class="na"&gt;oldUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/2023/04/post-slug/"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;oldUrl&lt;/code&gt; field is the one people skip. It lets me generate the &lt;code&gt;/_redirects&lt;/code&gt; file straight from the content, so every old permalink 301s to the new one. No spreadsheet needed for blog posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Define the collection schema first
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;src/content.config.ts&lt;/code&gt; I define the collection with Zod and make most fields required. If a post is missing a date or a description the build fails and tells me which file. Way better than finding out from the client after launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The stuff the converter always gets wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Images with hard coded &lt;code&gt;wp-content/uploads&lt;/code&gt; URLs. Download them, move them next to the content, rewrite the paths.&lt;/li&gt;
&lt;li&gt;Galleries and shortcodes. I flag them in a list for manual review instead of trusting the converter.&lt;/li&gt;
&lt;li&gt;Smart quotes and weird non breaking spaces. One replace pass fixes it.&lt;/li&gt;
&lt;li&gt;Internal links still pointing at the old domain or &lt;code&gt;?p=123&lt;/code&gt; style URLs. Grep for them and map them through the same old to new list.&lt;/li&gt;
&lt;li&gt;Comments. Work out real discussion vs spam, agree with the client what to keep, and keep the export instead of silently dropping them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Let the coding agent do the boring bit, but check its work
&lt;/h2&gt;

&lt;p&gt;I give Claude Code the converter script, the schema and one rule: after the conversion, run &lt;code&gt;astro build&lt;/code&gt;, then crawl &lt;code&gt;dist/&lt;/code&gt; and list any post where the word count is under 50% of the original. That catches posts where the converter ate half the content. Word count is only a warning sign though, so I still eyeball headings, embeds and a few of the long posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Preview and ship
&lt;/h2&gt;

&lt;p&gt;Once the build is clean I deploy a preview and click through the archive pages, a handfull of old URLs and the RSS feed. I host these on &lt;a href="https://novence.ai/migrate/wordpress" rel="noopener noreferrer"&gt;Novence&lt;/a&gt; so it is just &lt;code&gt;npx novence deploy&lt;/code&gt; from the project folder, and it sits next to all the other client sites. Then I run the old URL list against the preview with curl and make sure everything returns a 301 to a page that returns 200.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would tell myself on the first migration
&lt;/h2&gt;

&lt;p&gt;Spend your time on the audit and the schema. The conversion script is the small part. If the content is clean going in, the rest of the project is quiet, and the client never notices the move except that the site got faster.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>wordpress</category>
      <category>migration</category>
    </item>
    <item>
      <title>How my coding agent checks every client site before it goes live</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Tue, 10 Nov 2026 23:58:41 +0000</pubDate>
      <link>https://dev.to/lincchad/how-my-coding-agent-checks-every-client-site-before-it-goes-live-2301</link>
      <guid>https://dev.to/lincchad/how-my-coding-agent-checks-every-client-site-before-it-goes-live-2301</guid>
      <description>&lt;p&gt;Most client sites I've seen go wrong at launch didn't break because of the code. They broke because nobody checked the boring stuff. A contact form posting to nowhere, a staging &lt;code&gt;noindex&lt;/code&gt; left on, the favicon still the Astro rocket, a phone number with one digit wrong.&lt;/p&gt;

&lt;p&gt;Since I started building client sites with a coding agent (mostly Claude Code, sometimes Cursor), I stopped doing that check by hand. The agent runs it every time, before anything goes near the live domain. Here's the list and how I set it up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule I put in the repo
&lt;/h2&gt;

&lt;p&gt;Every client project has an &lt;code&gt;AGENTS.md&lt;/code&gt; (or &lt;code&gt;CLAUDE.md&lt;/code&gt;) with one section that matters more than the rest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Before any deploy
&lt;/span&gt;1. Run &lt;span class="sb"&gt;`npm run build`&lt;/span&gt;. If it fails, stop and fix it.
2. Run &lt;span class="sb"&gt;`npm run check:launch`&lt;/span&gt; and paste the output.
3. Do not deploy to production if any check says FAIL.
4. Deploy to a preview first and give me the preview URL.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. The agent is happy to follow a checklist, it just needs one that exists. Without this it will cheerfully ship whatever builds.&lt;/p&gt;

&lt;h2&gt;
  
  
  What &lt;code&gt;check:launch&lt;/code&gt; actually checks
&lt;/h2&gt;

&lt;p&gt;It's a small Node script that crawls &lt;code&gt;dist/&lt;/code&gt; after the build. Nothing fancy, no headless browser for most of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SEO basics, per page&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Has a &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; and it's not the same as every other page&lt;/li&gt;
&lt;li&gt;Has a meta description under ~160 chars&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;noindex&lt;/code&gt; anywhere unless the page is on an allow list (thank you pages, etc)&lt;/li&gt;
&lt;li&gt;Canonical points at the real domain, not the preview or localhost&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every internal &lt;code&gt;href&lt;/code&gt; resolves to a file in &lt;code&gt;dist/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;No links to the old WordPress domain or &lt;code&gt;?p=123&lt;/code&gt; style URLs if it's a migration&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tel:&lt;/code&gt; and &lt;code&gt;mailto:&lt;/code&gt; links match the phone and email in the client's data file. This one has saved me twice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Assets&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No image over ~400KB&lt;/li&gt;
&lt;li&gt;Every &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; has an &lt;code&gt;alt&lt;/code&gt; (empty is fine for decorative, missing is not)&lt;/li&gt;
&lt;li&gt;Favicon and og image aren't the starter template ones. I literally hash the default files and fail if they match.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Forms&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; has an action and a honeypot field&lt;/li&gt;
&lt;li&gt;Required fields actually have &lt;code&gt;required&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Redirects (migrations only)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parse &lt;code&gt;/_redirects&lt;/code&gt;, check no rule points at a page that doesn't exist in &lt;code&gt;dist/&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Output is just lines of PASS / WARN / FAIL with the file name. Easy for the agent to read, easy for me to skim.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preview first, then the real test
&lt;/h2&gt;

&lt;p&gt;Once the build passes I have the agent deploy to a preview. I host client sites on &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;Novence&lt;/a&gt;, so that's &lt;code&gt;npx novence deploy&lt;/code&gt; and it gives back a URL. If I'm working in Claude Code with the MCP server connected it can do the deploy itself and hand me the link.&lt;/p&gt;

&lt;p&gt;Then a second round runs against the live preview, because some things only show up over HTTP:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;curl every URL in the old sitemap and confirm 301 to a 200&lt;/li&gt;
&lt;li&gt;submit the contact form once with a test message and confirm it lands&lt;/li&gt;
&lt;li&gt;check response headers look sane&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I look at the preview on my phone myself. That part I don't automate, a five minute thumb test catches layout stuff no script will.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bother when the agent "already knows" this stuff
&lt;/h2&gt;

&lt;p&gt;Because it doesn't remember between sessions and it won't check what you didn't ask for. The agent wrote the page, so of course it thinks the page is fine. A dumb script that doesn't care is a better reviewer than the thing that wrote the code.&lt;/p&gt;

&lt;p&gt;The other win is for the client. When I hand over a site I can send the check output with it. Every page titled, every link resolves, forms tested on this date. It's a small thing but it reads as way more profesional than "it's live!".&lt;/p&gt;

&lt;h2&gt;
  
  
  Start small
&lt;/h2&gt;

&lt;p&gt;You don't need my whole list. Start with three checks: no &lt;code&gt;noindex&lt;/code&gt;, no broken internal links, form has an action. Put the rule in &lt;code&gt;AGENTS.md&lt;/code&gt;. Add a check every time something slips through on a real project. Mine is about 150 lines now and every single line is there becuase something went wrong once.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>ai</category>
      <category>freelance</category>
    </item>
    <item>
      <title>How I replace Yoast SEO when I move a client from WordPress to Astro</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Sat, 07 Nov 2026 00:14:15 +0000</pubDate>
      <link>https://dev.to/lincchad/how-i-replace-yoast-seo-when-i-move-a-client-from-wordpress-to-astro-50h4</link>
      <guid>https://dev.to/lincchad/how-i-replace-yoast-seo-when-i-move-a-client-from-wordpress-to-astro-50h4</guid>
      <description>&lt;p&gt;When I pull a client off WordPress, Yoast (or Rank Math) is usually one of the first plugins they ask about. They spent years tweaking titles and meta descriptions. They dont want that work thrown out with the old theme.&lt;/p&gt;

&lt;p&gt;Here is the checklist I actually run so rankings dont fall off a cliff during the move.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Export the SEO data before you touch the theme
&lt;/h2&gt;

&lt;p&gt;I never migrate "by feel". I pull a CSV of every public URL with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;post/page title&lt;/li&gt;
&lt;li&gt;Yoast SEO title (or Rank Math equivalent)&lt;/li&gt;
&lt;li&gt;meta description&lt;/li&gt;
&lt;li&gt;canonical if they set one&lt;/li&gt;
&lt;li&gt;noindex / nofollow flags&lt;/li&gt;
&lt;li&gt;focus keyphrase (nice to have, not required)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a plugin export is messy I just query &lt;code&gt;wp_postmeta&lt;/code&gt; for &lt;code&gt;_yoast_wpseo_title&lt;/code&gt; and &lt;code&gt;_yoast_wpseo_metadesc&lt;/code&gt; and join it to the posts table. Ugly SQL, works every time.&lt;/p&gt;

&lt;p&gt;Save that file. It becomes your source of truth for the Astro site.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Put titles and descriptions next to the content
&lt;/h2&gt;

&lt;p&gt;On Astro I keep SEO fields in frontmatter (or a &lt;code&gt;seo&lt;/code&gt; object on each content entry), not buried in a layout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Emergency&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;plumber&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;in&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Surry&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Hills"&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Same-day&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;plumbing&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;in&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Surry&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Hills.&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Fixed&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;pricing,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;no&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;call-out&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;fee."&lt;/span&gt;
&lt;span class="na"&gt;canonical&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/emergency-plumber-surry-hills/"&lt;/span&gt;
&lt;span class="na"&gt;noindex&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For pages that used to live in WordPress custom fields or ACF, I put the same shape in &lt;code&gt;/data/*.json&lt;/code&gt; so the client can still tweak copy later through the &lt;code&gt;/edit&lt;/code&gt; flow without opening a repo.&lt;/p&gt;

&lt;p&gt;One rule: the Astro &lt;code&gt;title&lt;/code&gt; in frontmatter is the &lt;em&gt;browser&lt;/em&gt; title. If Yoast used a seperate SEO title template, map that into &lt;code&gt;seoTitle&lt;/code&gt; and prefer it in the layout. Dont silently overwrite the H1.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. One layout owns the head tags
&lt;/h2&gt;

&lt;p&gt;I wire a single &lt;code&gt;BaseLayout.astro&lt;/code&gt; (or equivalent) that always emits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;meta name="description"&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Open Graph title, description, image, url&lt;/li&gt;
&lt;li&gt;Twitter card tags&lt;/li&gt;
&lt;li&gt;canonical link&lt;/li&gt;
&lt;li&gt;robots when &lt;code&gt;noindex&lt;/code&gt; is true&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;---
const pageTitle = Astro.props.seoTitle || Astro.props.title;
const desc = Astro.props.description || "";
const canonical = new URL(Astro.props.canonical || Astro.url.pathname, Astro.site);
---
&amp;lt;title&amp;gt;{pageTitle}&amp;lt;/title&amp;gt;
&amp;lt;meta name="description" content={desc} /&amp;gt;
&amp;lt;link rel="canonical" href={canonical} /&amp;gt;
&amp;lt;meta property="og:title" content={pageTitle} /&amp;gt;
&amp;lt;meta property="og:description" content={desc} /&amp;gt;
&amp;lt;meta property="og:url" content={canonical} /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep OG image defaults sane. A lot of small business sites had Yoast pulling a random featured image. I set one default brand OG image and only override when the page has a real hero.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Match canonicals to your redirect map
&lt;/h2&gt;

&lt;p&gt;This is where people lose rankings. If &lt;code&gt;/services/plumbing/&lt;/code&gt; used to be the URL and your Astro route is &lt;code&gt;/plumbing/&lt;/code&gt;, the redirect map &lt;em&gt;and&lt;/em&gt; the canonical must agree.&lt;/p&gt;

&lt;p&gt;I build the redirect CSV first (old URL → new URL), then set each page's canonical to the &lt;strong&gt;new&lt;/strong&gt; URL. Old URLs 301. New URLs self-canonical. No surprises.&lt;/p&gt;

&lt;p&gt;If Yoast had odd trailing-slash rules, pick one convention in Astro and stick to it everywhere (including the host). I usually keep trailing slashes for marketing sites so WordPress habits don't fight me.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Sitemap and robots without a plugin
&lt;/h2&gt;

&lt;p&gt;Drop &lt;code&gt;@astrojs/sitemap&lt;/code&gt; into the project and set &lt;code&gt;site&lt;/code&gt; in &lt;code&gt;astro.config&lt;/code&gt;. That covers most of what Yoast's XML sitemap did.&lt;/p&gt;

&lt;p&gt;For robots.txt I keep it boring:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User-agent: *
Allow: /

Sitemap: https://client-domain.com/sitemap-index.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only add Disallow rules you can explain out loud. I have seen clients with Yoast blocking half the site by accident. Dont copy that blindly.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Structured data: only what you need
&lt;/h2&gt;

&lt;p&gt;I do &lt;strong&gt;not&lt;/strong&gt; port every Yoast schema graph on day one. For a typical local service site I add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Organization (or LocalBusiness) on the homepage&lt;/li&gt;
&lt;li&gt;WebPage / Article on blog posts if they have a blog&lt;/li&gt;
&lt;li&gt;BreadcrumbList when the nav is nested&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Plain JSON-LD in the layout is fine. Fancy schema plugins can wait until Search Console is clean.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Preview check before DNS moves
&lt;/h2&gt;

&lt;p&gt;On the preview deploy I spot-check 10–20 money pages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;View source: title + description match the CSV&lt;/li&gt;
&lt;li&gt;Canonical points at the final public URL shape (even if preview host differs, the path should be right)&lt;/li&gt;
&lt;li&gt;No accidental &lt;code&gt;noindex&lt;/code&gt; left on from staging&lt;/li&gt;
&lt;li&gt;Sitemap lists those URLs&lt;/li&gt;
&lt;li&gt;Old URLs 301 on the preview host if you already shipped &lt;code&gt;/_redirects&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I deploy the preview with &lt;code&gt;npx novence deploy&lt;/code&gt; so the client can click real URLs on &lt;a href="https://novence.ai" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; before we touch DNS. Same build that will go live.&lt;/p&gt;

&lt;p&gt;Then I crawl the preview with a quick link checker and grep the HTML for empty descriptions. Empty meta descriptions are the silent killer after a migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. After cutover
&lt;/h2&gt;

&lt;p&gt;Once DNS is live:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Submit the new sitemap using the &lt;a href="https://novence.ai/blog/search-console-static-site" rel="noopener noreferrer"&gt;Search Console checklist&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Use URL Inspection on the top 5 money pages&lt;/li&gt;
&lt;li&gt;Watch Coverage / Page indexing for a week&lt;/li&gt;
&lt;li&gt;Keep the WordPress host up (read-only is fine) until the important URLs show as indexed on the new host&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a page drops, it is almost always a bad redirect or a canonical pointing at a soft 404, not "Astro is bad for SEO".&lt;/p&gt;

&lt;h2&gt;
  
  
  What I tell the client
&lt;/h2&gt;

&lt;p&gt;You are not losing Yoast. You are moving the same titles and descriptions into the site itself, where they ship with every deploy and dont depend on a PHP plugin staying updated.&lt;/p&gt;

&lt;p&gt;That conversation lands better than "we deleted your SEO plugin".&lt;/p&gt;




&lt;p&gt;If you are mid-migration and stuck on a weird Yoast template string (&lt;code&gt;%%title%% %%sep%% %%sitename%%&lt;/code&gt;), map the tokens once in a small script and write the resolved strings into frontmatter. Do it once. Dont leave template tokens in production HTML.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>wordpress</category>
      <category>seo</category>
    </item>
    <item>
      <title>What I do with a client's WordPress media library when I move them to Astro</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Fri, 06 Nov 2026 03:46:15 +0000</pubDate>
      <link>https://dev.to/lincchad/what-i-do-with-a-clients-wordpress-media-library-when-i-move-them-to-astro-lpk</link>
      <guid>https://dev.to/lincchad/what-i-do-with-a-clients-wordpress-media-library-when-i-move-them-to-astro-lpk</guid>
      <description>&lt;p&gt;Every WordPress to Astro move I do has the same quiet trap. The pages get rebuilt, the redirects are mapped, DNS is sorted, and then a month later the old host gets cancelled and half the images on the new site break. Why? Because they were still being loaded from &lt;code&gt;oldsite.com/wp-content/uploads/...&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The media library is the part people forget. Here is how I handle it now.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Get the originals, not the thumbnails
&lt;/h2&gt;

&lt;p&gt;WordPress makes 5 to 10 resized copies of every upload (&lt;code&gt;photo-300x200.jpg&lt;/code&gt;, &lt;code&gt;photo-1024x683.jpg&lt;/code&gt;, etc). If you scrape the live site you mostly get those. You want the originals.&lt;/p&gt;

&lt;p&gt;Easiest ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SFTP or the host's file manager: zip up &lt;code&gt;wp-content/uploads&lt;/code&gt; and download it.&lt;/li&gt;
&lt;li&gt;No server access? Tools &amp;gt; Export gives you a WXR file with every attachment URL. I parse that and pull each &lt;code&gt;wp:attachment_url&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Or WP-CLI if it's there: &lt;code&gt;wp media list --fields=url --format=csv&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then I throw away the sized copies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find uploads &lt;span class="nt"&gt;-regextype&lt;/span&gt; posix-extended &lt;span class="nt"&gt;-regex&lt;/span&gt; &lt;span class="s1"&gt;'.*-[0-9]+x[0-9]+\.(jpe?g|png|webp)$'&lt;/span&gt; &lt;span class="nt"&gt;-delete&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What's left is usually way smaller than the client expects. Lots of sites have 4GB of uploads and 300MB of actual originals.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Only keep what's actually used
&lt;/h2&gt;

&lt;p&gt;I grep the exported content (and the rebuilt pages) for filenames and only bring across files that are referenced. The rest goes in an archive folder for the client. Nobody needs 2016's Christmas party photos shipping with the site.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Rename to something sensible
&lt;/h2&gt;

&lt;p&gt;WordPress libraries are full of &lt;code&gt;IMG_4821-scaled-1.jpg&lt;/code&gt; and &lt;code&gt;Screen-Shot-2019...png&lt;/code&gt;. While I'm in there I rename to lowercase, hyphenated, descriptive names: &lt;code&gt;team-sarah-office.jpg&lt;/code&gt;, &lt;code&gt;kitchen-reno-before.jpg&lt;/code&gt;. A small script with a CSV mapping old name to new name does it, and I keep that CSV because I need it in step 6.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Fix the bloated stuff
&lt;/h2&gt;

&lt;p&gt;Before anything goes in the repo:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anything over ~500KB gets a look.&lt;/li&gt;
&lt;li&gt;PNG photos (very common, clients upload screenshots of photos) get converted to JPG or WebP. I've seen 6MB PNG hero images go to 180KB.&lt;/li&gt;
&lt;li&gt;Anything wider than about 2400px gets scaled down. The original camera file isn't needed on the web.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sharp&lt;/code&gt; or &lt;code&gt;squoosh-cli&lt;/code&gt; in a loop handles this fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Put them in the right place in Astro
&lt;/h2&gt;

&lt;p&gt;My rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;src/assets/&lt;/code&gt;&lt;/strong&gt; for images used in pages and components. Astro's &lt;code&gt;&amp;lt;Image /&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;Picture /&amp;gt;&lt;/code&gt; then generate the sizes, srcset and modern formats at build time, so I'm not hand making thumbnails like WordPress did.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public/&lt;/code&gt;&lt;/strong&gt; for things that need a fixed, stable URL: PDFs, downloadable price lists, menus, the odd image linked from emails or Google.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;---
import { Picture } from 'astro:assets';
import hero from '../assets/kitchen-reno-after.jpg';
---
&amp;lt;Picture src={hero} formats={['avif', 'webp']} widths={[480, 960, 1600]} sizes="(max-width: 960px) 100vw, 960px" alt="Finished kitchen renovation" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Always fill in the alt text properly. The WordPress alt fields are usually empty or say "image1", so this is a good chance to fix it.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Don't let old URLs 404
&lt;/h2&gt;

&lt;p&gt;PDFs are the big one. Clients have linked &lt;code&gt;/wp-content/uploads/2021/03/Menu.pdf&lt;/code&gt; in emails, Google Business profiles and other peoples sites for years. Same with images that ranked in Google Images.&lt;/p&gt;

&lt;p&gt;Using the rename CSV from step 3 I generate redirect lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/wp-content/uploads/2021/03/Menu.pdf   /files/menu.pdf   301
/wp-content/uploads/2020/11/IMG_4821-scaled.jpg   /images/kitchen-reno-before.jpg   301
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On &lt;a href="https://novence.ai/blog/static-site-301-redirects" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; that just goes in a &lt;code&gt;/_redirects&lt;/code&gt; file in the project, and it ships with &lt;code&gt;npx novence deploy&lt;/code&gt; like everything else. I only redirect the files that had real traffic or backlinks, not all 3000.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Make sure nothing still points at the old site
&lt;/h2&gt;

&lt;p&gt;Before cutover I search the whole built output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rn&lt;/span&gt; &lt;span class="s2"&gt;"wp-content/uploads"&lt;/span&gt; dist/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That should return nothing. Imported blog posts are the usual culprit because the HTML still has absolute URLs to the old domain. If anything shows up, it gets fixed before launch, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Keep the export until the old host is gone
&lt;/h2&gt;

&lt;p&gt;I keep the full original &lt;code&gt;uploads&lt;/code&gt; zip, the WXR export and the rename CSV in the client's folder until the old hosting is cancelled and the new site has run clean for a few weeks. Then it goes to cold storage. I've been saved by that zip more than once when a client says "where's that photo from the old about page".&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Originals downloaded, sized copies deleted&lt;/li&gt;
&lt;li&gt;[ ] Unused files archived, not shipped&lt;/li&gt;
&lt;li&gt;[ ] Files renamed, mapping CSV saved&lt;/li&gt;
&lt;li&gt;[ ] Big PNGs converted, oversized images scaled&lt;/li&gt;
&lt;li&gt;[ ] Page images in &lt;code&gt;src/assets/&lt;/code&gt;, downloads in &lt;code&gt;public/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[ ] Redirects for PDFs and important image URLs&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;grep wp-content dist/&lt;/code&gt; returns nothing&lt;/li&gt;
&lt;li&gt;[ ] Export kept until the old host is cancelled&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's not the exciting part of a migration but it's definately the part that bites you later if you skip it.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>wordpress</category>
      <category>performance</category>
    </item>
    <item>
      <title>Replacing Contact Form 7 and Gravity Forms when I move a client site from WordPress to Astro</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Tue, 03 Nov 2026 00:09:16 +0000</pubDate>
      <link>https://dev.to/lincchad/replacing-contact-form-7-and-gravity-forms-when-i-move-a-client-site-from-wordpress-to-astro-kbd</link>
      <guid>https://dev.to/lincchad/replacing-contact-form-7-and-gravity-forms-when-i-move-a-client-site-from-wordpress-to-astro-kbd</guid>
      <description>&lt;p&gt;Every WordPress site I migrate to Astro has the same hidden landmine. It's not the theme, it's not the blog posts. It's the forms.&lt;/p&gt;

&lt;p&gt;Contact Form 7, Gravity Forms, WPForms, sometimes all three on one site because three different devs touched it over the years. The client doesn't think about any of it. They just know leads show up in their inbox. If that stops the day you launch, you hear about it in about two weeks when they ask why the phone went quiet.&lt;/p&gt;

&lt;p&gt;So here's the checklist I run now before I touch DNS.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Find every form, not just the contact page
&lt;/h2&gt;

&lt;p&gt;I don't trust the menu. I search the database export for shortcodes and blocks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'\[(contact-form-7|gravityform|wpforms)[^]]*\]'&lt;/span&gt; wp-export.xml | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt;
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="s1"&gt;'wp:gravityforms/form[^&amp;gt;]*'&lt;/span&gt; wp-export.xml | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That usually turns up the forgotten ones. A quote form on a landing page from 2021. A newsletter box in the footer widget. A "request a callback" popup nobody remembers adding.&lt;/p&gt;

&lt;p&gt;I put each one in a little table: page URL, form name, fields, where it sends, and anything weird it does.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Figure out what each form actually does
&lt;/h2&gt;

&lt;p&gt;This is the part people skip. A form plugin is rarely "just email me". Look for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multiple recipients&lt;/strong&gt; or routing (sales vs support based on a dropdown)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integrations&lt;/strong&gt; like Mailchimp, a CRM, Zapier, Google Sheets&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File uploads&lt;/strong&gt; (CVs on a careers page, photos for a quote)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Conditional fields&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto replies&lt;/strong&gt; to the person who submitted&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thank you page redirects&lt;/strong&gt; that the client's Google Ads conversion tracking depends on&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last one has bitten me. The old site sent people to &lt;code&gt;/thank-you/&lt;/code&gt; and an ads conversion fired there. New site showed an inline "thanks!" message and conversions dropped to zero. Client thought the ads broke.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Rebuild as plain HTML
&lt;/h2&gt;

&lt;p&gt;On the Astro side I keep forms boring. A normal &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; with real &lt;code&gt;name&lt;/code&gt; attributes, no JS required to submit. I host the client sites on &lt;a href="https://novence.ai/blog/static-site-contact-forms" rel="noopener noreferrer"&gt;novence.ai&lt;/a&gt; so I create the form there (CLI, API or I just ask the coding agent to do it over MCP) and point the action at it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;"/__forms/FORM_ID"&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&amp;gt;&lt;/span&gt;Name &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&amp;gt;&lt;/span&gt;Email &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&amp;gt;&lt;/span&gt;Message &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="c"&gt;&amp;lt;!-- honeypot, keep it hidden --&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"_gotcha"&lt;/span&gt; &lt;span class="na"&gt;tabindex=&lt;/span&gt;&lt;span class="s"&gt;"-1"&lt;/span&gt; &lt;span class="na"&gt;autocomplete=&lt;/span&gt;&lt;span class="s"&gt;"off"&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"display:none"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Send&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Submissions get stored and emailed, which covers maybe 80% of what the old plugins were doing. The honeypot plus rate limiting has been enough spam control for the small business sites I do. If you're somewhere else, Formspree or Web3Forms work the same way, the pattern is identical.&lt;/p&gt;

&lt;p&gt;For the other 20%:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;File uploads&lt;/strong&gt;: I don't fake these. Most form backends for static sites won't take files and honestly I'd rather not store CVs anyway. I link to a proper upload tool or ask them to email attachments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CRM / Mailchimp&lt;/strong&gt;: their own embed form, or a webhook into Zapier. Don't try to rebuild the integration in client side JS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Routing by dropdown&lt;/strong&gt;: two separate forms is often simpler than one smart one. Ask the client if anyone actually uses the dropdown. Half the time nobody does.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Keep the thank you URL
&lt;/h2&gt;

&lt;p&gt;If the old site redirected to a thank you page, I build the same page at the same path. Zero clever-ness. Then tracking keeps working and I don't have to explain to an ads person why the numbers moved.&lt;/p&gt;

&lt;p&gt;If the old thank you URL had a weird slug I still keep it, and if I really have to change it, it goes in &lt;code&gt;/_redirects&lt;/code&gt; with everything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Test from the preview URL before launch
&lt;/h2&gt;

&lt;p&gt;Before the domain moves I submit every form on the preview deploy with a real email address:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;did it arrive, and how fast&lt;/li&gt;
&lt;li&gt;can the client see the visitor email clearly so they can reply fast&lt;/li&gt;
&lt;li&gt;does the honeypot actually stay hidden on mobile&lt;/li&gt;
&lt;li&gt;does the thank you page load&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also ask the coding agent to run the checks (lighthouse, axe, broken links) so labels on inputs don't get missed. Accessibility on forms is where AI generated markup is most sloppy in my experiance, usually placeholder text pretending to be a label.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Tell the client where leads go now
&lt;/h2&gt;

&lt;p&gt;One short email. "Your enquiries now come from this address, add it to your contacts so it doesn't land in spam." That one sentance has saved me more support tickets than anything else on this list.&lt;/p&gt;

&lt;p&gt;And I leave the old WordPress install up for a week after launch with its forms still pointing at the old inbox, just in case some cached page or old ad sends someone there.&lt;/p&gt;




&lt;p&gt;Forms are boring, which is exactly why they break quietly. Do the audit first and the actual rebuild takes like twenty minutes per site.&lt;/p&gt;

&lt;p&gt;What weird form setups have you found on old WP sites? I once found one that emailed a guy who left the company in 2019.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>wordpress</category>
      <category>forms</category>
    </item>
    <item>
      <title>The DNS checklist I run so a WordPress to Astro move never breaks client email</title>
      <dc:creator>Linc</dc:creator>
      <pubDate>Sun, 01 Nov 2026 00:02:42 +0000</pubDate>
      <link>https://dev.to/lincchad/the-dns-checklist-i-run-so-a-wordpress-to-astro-move-never-breaks-client-email-54g4</link>
      <guid>https://dev.to/lincchad/the-dns-checklist-i-run-so-a-wordpress-to-astro-move-never-breaks-client-email-54g4</guid>
      <description>&lt;p&gt;The scariest part of moving a client off WordPress isnt the rebuild. Its cutover day, when you touch their DNS and their email quietly stops working at 4pm on a Friday.&lt;/p&gt;

&lt;p&gt;I've done enough of these WordPress to Astro moves now that I run the same checklist every time. Nothing fancy. It just stops me from being the guy who broke the bakery's inbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why email breaks during a website move
&lt;/h2&gt;

&lt;p&gt;Most small business clients have their domain at some registrar, the website at a cheap WordPress host, and email at Google Workspace or Microsoft 365. Three different companies, one DNS zone.&lt;/p&gt;

&lt;p&gt;The website only needs two records. Email needs a handful of others. The problem is that a lot of hosts and registrars have a "connect your domain" button that helpfully wipes every record it doesnt recognise. That's how MX records disappear.&lt;/p&gt;

&lt;p&gt;So the whole job is: change the website records, touch nothing else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: screenshot the zone before you touch it
&lt;/h2&gt;

&lt;p&gt;Before anything, I export or screenshot the full DNS zone. Every record. I drop it in the client folder with the date.&lt;/p&gt;

&lt;p&gt;Then I sort it into two piles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; the apex (&lt;code&gt;example.com&lt;/code&gt;) and &lt;code&gt;www&lt;/code&gt;. Usually an A record pointing at the old WordPress host and a CNAME or A on &lt;a href="http://www" rel="noopener noreferrer"&gt;www&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email and everything else:&lt;/strong&gt; MX, the SPF TXT, DKIM (TXT or CNAME), DMARC TXT, plus random verification TXT records for Google, Facebook, whatever.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pile two does not get touched. Ever. If I'm not sure what a record does, it goes in pile two.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: get the new site live on a preview URL first
&lt;/h2&gt;

&lt;p&gt;The Astro build gets deployed and checked long before DNS day. I deploy with the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
npx novence deploy ./dist &lt;span class="nt"&gt;--json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives me a &lt;code&gt;*.novence.ai&lt;/code&gt; preview URL that isnt indexed, so I can send it to the client, run through the redirects and forms, and not worry about Google picking up a half finished site.&lt;/p&gt;

&lt;p&gt;Cutover day should be boring. If you're still fixing layout bugs on cutover day you're doing it in the wrong order.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: attach the domain and let the host tell you the records
&lt;/h2&gt;

&lt;p&gt;I dont type DNS records from memory. I attach the domain and copy exactly what comes back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx novence domains add www.clientsite.com.au
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For &lt;a href="https://novence.ai/blog/email-and-website-dns" rel="noopener noreferrer"&gt;Novence&lt;/a&gt; that prints a &lt;code&gt;www&lt;/code&gt; CNAME to &lt;code&gt;fallback.novence.ai&lt;/code&gt;, and then you do one thing for the apex: either an ALIAS on &lt;code&gt;@&lt;/code&gt; to the same target, or a URL redirect from the apex to &lt;code&gt;https://www.clientsite.com.au/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Small but important: the apex cant be a plain CNAME if the domain also has MX records. That's a DNS rule, not a host thing. If the registrar doesnt support ALIAS or ANAME, use the forward to www and move on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: edit two records at the registrar, by hand
&lt;/h2&gt;

&lt;p&gt;At the registrar I:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Change the &lt;code&gt;www&lt;/code&gt; record to the new CNAME.&lt;/li&gt;
&lt;li&gt;Change or replace the apex A record with the ALIAS or the forward.&lt;/li&gt;
&lt;li&gt;Delete the old WordPress host's A records for those two names only.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's it. I dont click any wizard, I dont "import" a template, and I dont let the new host manage the whole zone unless the client actually wants that.&lt;/p&gt;

&lt;p&gt;Then I compare the zone against my screenshot from step 1. Every MX, SPF, DKIM and DMARC record should be byte for byte the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: test mail both ways
&lt;/h2&gt;

&lt;p&gt;Once DNS resolves and HTTPS is issued, I test email in two directions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Send from my personal Gmail to &lt;code&gt;hello@clientsite.com.au&lt;/code&gt;. Incoming works, so MX is fine.&lt;/li&gt;
&lt;li&gt;Ask the client to reply from that address back to me. Outgoing lands in my inbox and not spam, so SPF and DKIM are fine.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Takes two minutes. I do it while still on the call with them so they see it working.&lt;/p&gt;

&lt;p&gt;If incoming fails, the website can stay on the new host. Go back to Google Admin or the Microsoft 365 setup page, copy the MX records they publish, and put back whatever went missing. Dont try to roll back the whole site in a panic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: check the domain status, then the boring stuff
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx novence domains status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I wait until it stops asking for more DNS changes, then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load the apex and www, with and without https, and make sure they all land on one canonical URL.&lt;/li&gt;
&lt;li&gt;Spot check a few old WordPress URLs to confirm the 301s from &lt;code&gt;/_redirects&lt;/code&gt; fire on the real domain, not just the preview.&lt;/li&gt;
&lt;li&gt;Submit the sitemap in Search Console for the real domain.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 7: leave the old host running for a week
&lt;/h2&gt;

&lt;p&gt;I dont cancel the old WordPress hosting on cutover day. DNS caches, someone has a bookmark to &lt;code&gt;/wp-admin&lt;/code&gt;, the client remembers a PDF that was only ever on the old server. A week of overlap costs a few dollars and has saved me more than once.&lt;/p&gt;

&lt;p&gt;After the week I grab a final backup of the old site and the database, then cancel.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Screenshot the zone.&lt;/li&gt;
&lt;li&gt;Website records are &lt;code&gt;www&lt;/code&gt; and the apex. Everything else is someone elses problem and you leave it alone.&lt;/li&gt;
&lt;li&gt;Get the host to print the records, dont guess them.&lt;/li&gt;
&lt;li&gt;No "connect domain" wizards.&lt;/li&gt;
&lt;li&gt;Test mail in and out before you hang up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rebuild is where you show off. Cutover is where you keep the client. If you're moving a pile of WordPress sites over, having all of them on one host with the same domain flow makes this checklist really repetable, which is the whole point.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>astro</category>
      <category>wordpress</category>
      <category>dns</category>
    </item>
  </channel>
</rss>
