Finished MyLogRoom.com - Free blogging platform build on CDN always lowest latency world wide
Published Mon Feb 15 2021
MyLogRoom.com has always been like a dream to me. In the journey of blogging I always found it difficult for a blog platform that should be fast and must be easy to use. Below are the pros and cons.
- Mostly Fastest static Blogs software are Jekyll, Hugo that generate HTML only and that is the reason they are fastest but when you want to to write a new post most of the systems regenerate or render all the HTML posts that you have written in the past.
- Other most common solution is to use platforms like Wordpress that dynamically generates the content and you can apply catching plugins over that but there is is a major problem that when you write a post you have to invalidate cache and also it has a major disadvantage that you have to use PHP and MySQL so this is not database free.
- Branding on themes and generated content.
I wanted a solution that is database free should be very fast, as must use CDN havily. But majorly the following advantages -
- Changing your domain should automatically change domain for posts
- Changing your domain should not result in loss of images.
- Lighthouse rating should be more than 98%.
- Posts should render in html for better SEO.
- Latency should be nearly 0.2 Seconds
- Easy to attach custom domain
- No branding
Above problems are solved in myLogRoom.com as it is Database Free built over CDN with cloudflare workers and KV only.
Now how to attach custom domain
Note: I am going to skip that part where you buy domain and add to cloudflare you can google for it.
Step 1: Create account on app.mylogroom.com and choose domain on signup as example.mylogroom.com
Step 2: Now add domain to Cloudflare DNS and CNAME example.mylogroom.com.
Step 3: create worker paste the below content and replace https://vishvendra.co with your example.mylogroom.com in below code.
addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) /** * Respond to the request * @param {Request} request */ async function handleRequest(request) { const pathname = (new URL(request.url)).pathname return fetch(`https://vishvendra.co/${pathname}`,request) }
Step 4: Now goto domain > worker there map the route this way
Route
*vishvendrasingh.com/*
Worker
Choose worker
Step 5: save
Now your Blog should be ready for the world on custom domain for free