community-content
community-content copied to clipboard
Deploy Strapi to Cloudflare Pages
My Request
Community vote π Upvote if you like this topic π If you can make the article/video!
Thank you.
Hi, @PaulBratslavsky I will like to work on this.
Hi,
after some research I donβt think itβs possible since cloudflare pages is for static site hosting and strapi is a dynamic web app.
Abdulwahab Ashimi @.***> schrieb am Di. 6. Sept. 2022 um 16:33:
Hi, @PaulBratslavsky https://github.com/PaulBratslavsky I will like to work on this.
β Reply to this email directly, view it on GitHub https://github.com/strapi/community-content/issues/955#issuecomment-1238237744, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSUNMIH2ERQ3H364FMCRYDV45I3FANCNFSM6AAAAAAQD4SM3A . You are receiving this because you authored the thread.Message ID: @.***>
@ibn-ashimi and @sschweimler maybe you can host Strapi on some other platform and host your UI on Cloudflare and implement a hook that will redeploy your frontend on cloudflare whenever content in Strapi changes.
This is similar to like hosting Ghost on your own desktop with an SSG like Eleventy deployed on Netlify. If Ibn-Ashimi leaves it, choose me second please. I'd like to write it. @PaulBratslavsky
Let us know @ibn-ashimi if you are still interested π Thanks @shammadahmed , we will let you know
Hi please can I write about this topic
@dessireugarte I am already working on something else. Thank you.
Thanks man @ibn-ashimi
@dessireugarte Please assign it to me and you can add the 'in progress' label to it.
@ibn-ashimi since you are working on something else I will assign it to @shammadahmed.
When ever you have an outline, please share it here. Thank you.
@shammadahmed Are you on twitter? whats your handle?
@PaulBratslavsky Since Heroku is ending the free tier in November, my tutorial will use Render to deploy the backend. Here is the outline:
- Introduction
- Strapi - a headless CMS
- Cloudflare Pages - a JAMstack platform
- Goals
- Prerequisites
- Choose a hosting platform for Strapi
- Deploy the backend
- Add content
- Choose a UI
- Deploy the frontend
- Automatically redeploy with webhooks
- Conclusion
@ibn-ashimi It's the same as here.
Cool. Followed you @shammadahmed
@PaulBratslavsky @dessireugarte I am mostly done with the article, could you guys please confirm the outline first so I can post the link for review?
@shammadahmed can you add a section talking about SEO and why it is important, and how JAMstack apps help with that? And in your Strapi app, you can use the SEO plugin and add that metadata in the Cloudflare pages website.
@PaulBratslavsky The tutorial has come about pretty solid (about 2700 words). I have used the Strapi starter templates for deployment, with Strapi on Render and Gatsby on Cloudflare Pages. Readers would be able to easily follow step by step to deploy on Cloudflare Pages and connect with webhooks.
My take on the SEO section is that it would block the readers' flow in deploying the site, but I can surely add the section if you guys want.
This is my first article for Strapi and I have worked hard on it. You guys would like it.
@shammadahmed ok thanks for the context, we can leave out the above-mentioned recommendation around SEO. When ready can submit the draft for review.π
@PaulBratslavsky Awesome man. The draft is ready, I just need to add keywords, and proofread it.
About that SEO topic: I was reading about SEO and JAMstack yesterday. I found it very interesting how JAMstack makes very search-friendly websites possible since crawlers like static sites. I would love to write a article/tutorial on it covering everything from the theory to the Strapi SEO plugin. What are your thoughts?
@PaulBratslavsky @TiaraOluwanimi It is ready, hope you guys like it: https://www.dropbox.com/scl/fi/9u4chsqq7q8ujqf7hywlt/How-to-Deploy-Strapi-on-Cloudflare-Pages.paper?dl=0&rlkey=hrf5ta2hqmtj9g5r5g2ebh58r
@dessireugarte It is labeled 'article', though it is a tutorial.
Thanks @shammadahmed π We will review the draft. I'll get back to you.
Hello @shammadahmed π Just wanted to let you know that your article will be published around the first week of December. I'll let you know if we need any changes or when it is published!
@dessireugarte This is very good news. Thank you for your guys' part. I am looking forward to when it gets live.
Stumbled upon this looking for a way to run Strapi on Cloudflare Pages, rather than just deploying Strapi content to Cloudflare Pages.
Its a common misconception that Cloudflare Pages is static content only, akin to GitHub Pages, however that is not the case. Cloudflare Pages is some tooling atop of Cloudflare Workers + KV to offer edge based serving of static and dynamic content, akin to Vercel's deployment platform, but with all the benefits of Cloudflare: cdn, ddos protection, workers, kv, d1, r2, queue, stream, access, warp, argo, etc. Where Vercel has Next, Cloudflare has Remix and Astro.
Personally, I'm planning to build a few Remix apps and Astro websites that use Strapi for its access to KV, D1, and R2.
@shammadahmed I added some minor comments in your draft, let me know if they make sense or if you have questions.
@PaulBratslavsky Thanks for the review man.
Advanced tab env variables & Render memory limit: I think you have missed the block quotes while reading: I mention the solution for both the environment variables error and Render free plan memory limit issues.
API Token: I left the token generation part for later so the article achieves a chronological flow so the reader can deploy the template quickly to production in one go. But if you say, I can explain it there as well or just add an in-article link to that part there.
Let me know if I misunderstood any of the comments.
Hello @shammadahmed πΒ Your article is live! π Great job! Please register to our forum by clicking on the discussion at the bottom of your post, so you automatically receive notifications when someone adds comments. Also, please follow the guidelines to issue and submit an invoice.
You should register yourself once as an "Individual Vendor" in this form, please let me know if you have any questions about the form. Just be aware that in the W-8BEN form:
- 5 is not mandatory
- 6a & 6b are only necessary if you have a tax number in your own country.
Then you can submit your invoice here, and soon you will receive your payment. If you want to promote your article, here are some ideas and templates that might help you! Please feel free to reach out to me if you have any questions!