I originally built a photography business’s website using SvelteKit for the frontend and Strapi for content management.
Strapi handled information such as photography events, galleries, and website content. The frontend fetched that information through Strapi’s API.
It worked, but maintaining two separate applications created some problems.
The Problem With the Original Setup
The site’s content depended on the availability of a separate Strapi instance.
After the old hosted CMS became inactive, its content was lost. The frontend still had routes designed around Strapi’s API, but the backend it depended on was no longer usable.
I could have deployed another Strapi instance and recreated the content models.
Instead, I decided to rebuild the system with content management directly inside the website.
Rebuilding the Backend
The reconstruction uses SvelteKit, PostgreSQL, and Drizzle ORM.
Rather than depending on Strapi’s API, the website now has its own server-side services for managing content, inquiries, bookings, clients, and galleries.
I also built an administration interface with separate areas for managing those records.
Administrator authentication uses Better Auth, with restricted access and email-based sign-in. The database stores content and operational records, while the actual media files are designed to live in Cloudflare R2.
This keeps file storage separate from application data without requiring an entirely separate CMS.
Working With Media
Photography websites need to handle a lot more than text content.
The new media system supports public and private storage, signed upload URLs, multipart uploads for larger files, and metadata associated with each file.
I also implemented private client galleries with expiring access links and controlled downloads.
Those features are implemented in the reconstruction, although the live Cloudflare integration still needs verification with the actual storage configuration.
The Trade-Off
Building my own CMS doesn’t automatically make the application simpler.
I’m now responsible for the database migrations, administrator permissions, upload handling, and content editing experience that a third-party CMS would normally provide.
The difference is that I can design those systems around the exact requirements of the website instead of adapting everything to a general-purpose content platform.
Current Status
The reconstructed application has passed its local checks and has a working preview deployment.
The production migration and several external integrations still need to be completed and verified.
I wouldn’t replace a third-party CMS in every project. For this one, though, the tighter integration and control over how content relates to bookings, clients, and media made the decision worth pursuing.
Thanks for reading.
More field notes