{"id":198,"date":"2021-02-21T13:53:00","date_gmt":"2021-02-21T18:53:00","guid":{"rendered":"http:\/\/sycured.127.0.0.1.sslip.io\/?p=198"},"modified":"2024-01-13T20:30:53","modified_gmt":"2024-01-14T01:30:53","slug":"goodbye-vercel-hello-cloudflare-pages","status":"publish","type":"post","link":"http:\/\/10.42.0.68:8080\/blog\/goodbye-vercel-hello-cloudflare-pages","title":{"rendered":"Goodbye Vercel, Hello CloudFlare Pages"},"content":{"rendered":"\n

You’ll know why I’m migrating from Vercel<\/a> to CloudFlare Pages<\/a>.<\/p>\n\n\n\n

I’m very happy with CloudFlare DNS and CDN so serving this blog and some other frontend directly from CloudFlare isn’t crazy.<\/p>\n\n\n\n

It’s time to go deeper<\/p>\n\n\n\n\n\n\n\n

The common point between Vercel and CF Pages<\/h2>\n\n\n\n

They use GitHub so the migration was transparent.<\/p>\n\n\n\n

How I used Vercel<\/h2>\n\n\n\n

Vercel was the build and host of this blog and other frontends.<\/p>\n\n\n\n

But not directly because I use CloudFlare to do the caching so I let you imagine the flow:<\/p>\n\n\n\n

    \n
  1. GET \/ -> CloudFlare (DNS)<\/li>\n\n\n\n
  2. CloudFlare (Cache) or proxy pass to Vercel<\/li>\n<\/ol>\n\n\n\n

    CloudFlare Pages<\/h2>\n\n\n\n

    Thanks a lot, CloudFlare for permitting me to use the Beta version.<\/p>\n\n\n\n

    Now, when I push to my repository, CloudFlare Pages build and serve my files directly.<\/p>\n\n\n\n

      \n
    1. GET \/ -> CloudFlare (DNS + Cache + static hosting)<\/li>\n<\/ol>\n\n\n\n

      No pain, no gain<\/h2>\n\n\n\n

      My pain was to migrate, just 2 minutes, it’s nothing.<\/p>\n\n\n\n

      My gain was a better latency, more near my user.<\/p>\n\n\n\n

      I plan to use CloudFlare Pages for the website of a nonprofit because it’s a lot more easy and quick to obtain the best performance.<\/p>\n\n\n\n

      Maybe the next step will be CloudFlare Workers but at this time, it doesn’t accept Python. Maybe a good time to go deeper with Rust.<\/p>\n","protected":false},"excerpt":{"rendered":"

      You’ll know why I’m migrating from Vercel to CloudFlare Pages. I’m very happy with CloudFlare DNS and CDN so serving this blog and some other frontend directly from CloudFlare isn’t crazy. It’s time to go deeper<\/p>\n","protected":false},"author":1,"featured_media":77,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[28],"tags":[15,23,11],"_links":{"self":[{"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/posts\/198"}],"collection":[{"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":1,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":199,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/posts\/198\/revisions\/199"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/media\/77"}],"wp:attachment":[{"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10.42.0.68:8080\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}