Blog Backup

Purpose

  • It’s been a month since I started deploying my blog website ✌️😎;
  • I decided to find a place to back up this blog;
  • Cloudflare also provides a globally distributed serverless platform service, and it is more powerful; - Therefore, I chose to deploy on Cloudflare;
  • 👉Backup Blog👈

Astro

  • Although Cloudflare also supports Deno, Cursor couldn’t get it to work no matter what. After several days and dozens of failed deployments, I gave up on using the Fresh framework.
  • I guess on the one hand it’s because of my own novice level, and on the other hand, it’s probably because the Fresh framework of Deno is relatively new, and the large language model hasn’t learned it yet 😊.
  • Switched to the Astro framework, a modern JavaScript web framework focused on building high-performance, content-centric websites.

MDX

  • In addition to supporting regular markdown files, Astro also supports MDX files.
  • MDX (Markdown + JSX) files allow developers to combine the simplicity of Markdown with the dynamic capabilities of JSX to create more complex and dynamic content pages.
  • With MDX, developers can embed variables, JSX expressions, and components in Markdown files while retaining the ease of use and flexibility of Markdown.
  • Unfortunately, Deno does not support this and requires the use of islands components.