Diary
A record of migrating flares.jp to Cloudflare and EmDash. The comfortable distance between AI-driven development and the CMS layer.

We have completely migrated the infrastructure of our corporate site, flares.jp, from Xserver, which we had operated for many years, to Cloudflare (Workers / Pages / D1 / R2). At the same time, we introduced EmDash, a modern open-source CMS, into the production environment as a foundation for managing content such as articles and documents.
Looking back at our operations, our approach to writing or editing articles was to have an AI agent directly edit the codebase (TypeScript data definition files or Markdown), commit to the Git repository, and run the deployment pipeline. During the startup phase or when the number of articles was small, this 'direct code manipulation' style felt the most efficient and speedy.
However, as the number of articles—columns, technical documents, case studies, and diaries—grew into the hundreds and thousands, the drawbacks of the excessive tight coupling between the codebase and content data became apparent. Even minor corrections for typos or replacing eye-catching images would generate source code diffs, requiring Git commits and a full frontend rebuild. Although we could leave everything to an AI agent, the blurred boundary between code and content was not ideal for system health or operational cognitive load.
Therefore, we decided to incorporate EmDash into the site structure as an independent layer for content management. Writing and content management are now handled via the CMS admin panel or API, and the frontend fetches and renders that data when needed. This established a clean separation of responsibilities, moving from 'AI directly modifying source code' to 'AI submitting/updating content via the CMS API.' Inserting a CMS cushion makes the overall management and operation of the site surprisingly simple.
What I felt strongly after actually installing and configuring EmDash was its overwhelming modernity and ease of use. It uses Cloudflare D1 (SQLite) as a database and Cloudflare R2 as media storage, eliminating the need to maintain a constantly running MySQL server or heavy middleware like traditional web servers. Furthermore, issuing Personal Access Tokens (API keys) and managing permission scopes can be done intuitively and securely from the admin panel. Pipelines for manipulating content via REST API from external automation scripts or AI agents can be built in just a few minutes.
In web development to date, the industry standard when an admin panel was needed was to 'just install WordPress.' However, considering the operation of PHP runtimes, keeping up with security updates, and plugin conflict issues, the cost and operational risks of setting up a heavy WordPress environment in modern web development are too significant to ignore. If you are aiming for static generation, edge delivery, and an API-driven modern architecture, I am convinced that EmDash is the right choice over WordPress for future site production.
With the infrastructure on the Cloudflare edge foundation and content management organized by EmDash, not only has the overall site display performance improved, but the daily development and writing experience has also become much lighter. Feeling the satisfaction of having well-organized tools, I want to continue carefully accumulating sincere and valuable information.