Documentation, experiments, and production lessons. Sorted newest first.
Overview This system intercepts AI crawler traffic (such as GPTBot, ClaudeBot, and PerplexityBot) at Cloudflare’s edge network and serves pre-rendered Markdown directly from Cloudflare Key-Value (KV) storage. Human traffic passes unchanged to the WP Engine origin server, ensuring zero origin server or database load for AI bot requests. Traffic & Data Flow Deployment Guide 1. […]
Objective: This guide documents the end-to-end process for exporting a web application generated by the Replit AI Agent, reconfiguring its strict pnpm monorepo structure, and setting up an automated deployment pipeline to WP Engine’s Atlas (Headless Platform). 1. Project Suitability & Limitations (READ FIRST) Because the Replit AI Agent is a full-stack developer, it can […]
Objective: This guide documents the end-to-end process for exporting a generated web application from Lovable (which uses Vite, TanStack Start, and Nitro) and successfully deploying it to WP Engine’s Headless Platform. 1. Overview & Prerequisites By default, Lovable compiles its frontend applications using TanStack Start and the Nitro server engine. Lovable’s default configuration is highly […]
This document outlines the CI/CD pipeline established for managing the WP Engine sites. The workflow allows developers to work locally in VS Code, push changes to GitHub to automatically update the Staging environment, and manually trigger a flexible “Copy” process to copy changes to Production using the WP Engine API. In this use case, due […]
1. Objective To reduce “alert fatigue” and improve the accuracy of our New Relic APM “Error Rate” metric. On certain managed hosts, it might not be possible to configure the New Relic agent running on the server and disable warnings in the default way. These APM configurations can report a high volume of non-critical PHP […]
1. Executive Summary This Proof of Concept (POC) establishes an automated site synchronisation & domain switching strategy. By leveraging GitHub Actions and the WP Engine API, we have automated two critical operations: 2. Architecture Overview The solution utilises two GitHub Actions workflows interacting with the WP Engine API. Workflow Logic 3. Prerequisites & Configuration 3.1 […]
1. Summary Context: The default WP Cron can be unreliable and not suitable for all actions. We need to execute the server site command where standard Unix cron is not availableSolution: We use GitHub Actions to SSH into the server and execute commands using a “Linear Chain” method. This eliminates the need for external intermediary […]
1. Overview & Objective Following POC provides a way to implement a caching strategy that serves custom content to Bots (e.g., Googlebot) while serving default content to Humans, without sacrificing performance. This kind of approach can be desirable, especially to news sites or sites with paywalled content, where they want bots to have access to […]
1. Overview A Cloudflare Worker sits in front of the application. It normally proxies traffic to the Primary Origin. If the Primary Origin returns a 5xx error (Server Error) or encounters a Network Failure (Timeout/Unreachable), the Worker automatically reroutes the request to the Failover Origin. Crucially, this system preserves the primary domain in the user’s […]
This is a proof-of-concept for automating log offloading without relying on an S3 bucket. The same approach can be adapted to whatever log monitoring tools and server setup you prefer. This article covers how to offload logs to a remote server without the need for an S3 bucket. This can be done on a local […]