News for hackers. Stuff that matters.
Re:Cloudflare Pages goes full stack by nevikashah on Wednesday November 17, 2021 @09:48AM (#29253712)
Hey there - I'm the PM for Pages! Super excited about this release today. We also announced our support for GitLab and partnerships with several CMSes! Happy to answer any questions.
Re:Cloudflare Pages goes full stack by technobabbler on Wednesday November 17, 2021 @10:05AM (#29253987)
It's really exciting to see Cloudflare Pages keep progressing!

Any plan to eventually offer drop-in support for Next.js? (Not just static builds, but the backend server/serverless functions too, like Vercel... maybe mapping certain APIs to Workers?). It would be lovely to be able to leverage the power of that framework on Cloudflare infrastructure.

Edit: Next and frameworks like it solve the "I love the idea of serverless, but don't want to reinvent the whole backend from scratch" problem. It's nice to have a framework abstract away problems like routing, caching, invalidations, buildchains, image transformations, etc. Cloudflare Pages and Workers can do almost all the same things, but requires more coding and configuration... that's the only reason we went with Next + Vercel instead of Pages.

Re:Cloudflare Pages goes full stack by whiskypeters on Wednesday November 17, 2021 @12:20PM (#29255877)
there is https://github.com/flareact/flareact in development by a shopify engineer, worth checking out... seems like a good architecture for deeper integration with workers runtime
Re:Cloudflare Pages goes full stack by technobabbler on Wednesday November 17, 2021 @01:42PM (#29257079)
Saw this a few months ago and briefly considered it, but it seemed too risky to use on a production website.

Next.js is maintained by an entire company (Vercel). If Flareact ever gains official Cloudflare support, that'd be wonderful!

Re:Cloudflare Pages goes full stack by DoctorOW on Wednesday November 17, 2021 @01:30PM (#29256907)
This is the first thing I thought of as I was reading the server side section
Re:Cloudflare Pages goes full stack by WORMS_EAT_WORMS on Wednesday November 17, 2021 @11:12AM (#29254919)
Agree. Also, FWIW, what Cloudflare built is definitely a nice option. I would prefer even closer integration though and will be test driving this.

But… This is almost just like an index.html and api.php file on a server. I think what devs really need/want is the Svelte Kit adaptor but an official Cloudflare way.

Edit: Apparently the functions support parameterized files like .functions/friends/[name].js [1] which creates a lot closer integration. Put that feature front and center! I think this really solves many issues.

[1] https://blog.cloudflare.com/building-full-stack-with-pages/

Re:Cloudflare Pages goes full stack by nevikashah on Thursday November 18, 2021 @12:19PM (#29267898)
Thanks for bringing this up! It's definitely something that is on our radar. We're looking into improving the experience with frameworks, and Next is one of them!
Re:Cloudflare Pages goes full stack by zapita on Wednesday November 17, 2021 @10:13AM (#29254091)
Is there a way to push content directly to Pages instead of having it pull from Github or Gitlab? Many teams have their own deployment tooling with pre-existing git integrations, and would rather add a Pages target to that. For example Netlify lets you bypass their github pull feature. Does Cloudflare?
Re:Cloudflare Pages goes full stack by tailspin2019 on Wednesday November 17, 2021 @10:42AM (#29254535)
Yep this one is important to me too.

I really dislike the GitHub integration approach, but I get that it makes it simpler for some use cases.

Re:Cloudflare Pages goes full stack by segphault on Wednesday November 17, 2021 @11:24AM (#29255093)
I'm interested in non-git deployment as well. For an image-heavy site, I would really prefer to avoid having to store static assets in GitHub so that I don't have to deal with git LFS. It would be nice if their CLI tool could support directly deploying a Pages application.
Re:Cloudflare Pages goes full stack by nevikashah on Thursday November 18, 2021 @12:39PM (#29268145)
Right now, you can only create a project through GitHub/GitLab. However, being able to upload your pre-built assets directly to Pages is something we are working on now! Listen out for updates!
Re:Cloudflare Pages goes full stack by zapita on Thursday November 18, 2021 @05:37PM (#29271507)
Thanks. This makes Pages a non-starter for me. I look forward to trying it with direct upload!
Re:Cloudflare Pages goes full stack by ignoramous on Wednesday November 17, 2021 @04:56PM (#29259372)
Hi:

- Are Pages functions running Workers Unbound or Workers Bundled?

- Do functions support Worker composition announced yesterday [0]?

[0] https://blog.cloudflare.com/introducing-worker-services/

Re:Cloudflare Pages goes full stack by boleary-gl on Wednesday November 17, 2021 @09:55AM (#29253815)
GitLab team-member here. So exciting to see GitLab support! I'll finally be giving Pages a try later today. :)
Re:Cloudflare Pages goes full stack by iainmerrick on Wednesday November 17, 2021 @11:08AM (#29254866)
Does Pages now support multiple deployments from a single git repository? When I looked a while back it seemed like there was no way to host multiple domains on CF Pages from a monorepo. GH Pages has the same limitation, but Netlify does support monorepos.
Re:Cloudflare Pages goes full stack by nevikashah on Wednesday November 17, 2021 @11:25AM (#29255110)
support for monorepos are on deck and coming soon!
Re:Cloudflare Pages goes full stack by naiv on Wednesday November 17, 2021 @10:26AM (#29254308)
The link to the 'example to see the SvelteKit adapter' in the article is broken (https://github.com/lukeed/pages-fullstack)
Re:Cloudflare Pages goes full stack by showerst on Wednesday November 17, 2021 @10:26AM (#29254322)
So is the link to the usage limits.
Re:Cloudflare Pages goes full stack by nevikashah on Wednesday November 17, 2021 @11:27AM (#29255141)
working on this now - should be fixed soon
Re:Cloudflare Pages goes full stack by nevikashah on Wednesday November 17, 2021 @12:04PM (#29255652)
clear cache and cookies - docs are up :)
Re:Cloudflare Pages goes full stack by hunter2_ on Wednesday November 17, 2021 @11:59PM (#29262116)
I hope this doesn't come across too aggressively, but if merely clicking "refresh" doesn't do the trick (as suggested through a recommendation to clear cache/cookies) please investigate some cache-busting techniques!
Re:Cloudflare Pages goes full stack by iruoy on Thursday November 18, 2021 @05:09AM (#29263895)
The @sveltejs/adapter-cloudflare package isn't published to NPM yet.
Re:Cloudflare Pages goes full stack by pacino on Wednesday November 17, 2021 @10:56AM (#29254699)
Hi! Do you know if this release changes the ability to enable wildcard subdomain routing to Pages without requiring a >$200/mo Enterprise plan? Its a feature Netlify offer in their $19 "Pro" plan and is a roadblock for us to fully leverage Pages.
Re:Cloudflare Pages goes full stack by RcouF1uZ4gsC on Wednesday November 17, 2021 @09:55AM (#29253808)
Very exciting!

What is your story with Pages and Rust Workers? Will they get the benefits of automatic deployment or is it still required to use Wrangler and manually wire things together?

Re:Cloudflare Pages goes full stack by xrd on Wednesday November 17, 2021 @11:55PM (#29262101)
Where is information on gitlab support? I didn't see it linked in the post. Is this just the main gitlab service, or are any third party gitlab servers possible?

I'm building a svelte-kit based blogging framework called Svekyll with a hosting service called ExtraStatic. It all uses gitlab on the backend and I'm very curious if you could author on ExtraStatic and then publish into cloudflare. Right now I use the static adapter but I'm interested in seeing if the cloudflare adapter just works.

ExtraStatic is interesting because it allows you to publish without really knowing git. You can publish using just email, or you can use the creator tool or the Android app to publish into gitlab and then it builds automatically. Hosting on cloudflare would be awesome.

Very exciting stuff!

Re:Cloudflare Pages goes full stack by gregbrimble on Friday November 19, 2021 @04:48AM (#29275481)
GitLab blog post: https://blog.cloudflare.com/cloudflare-pages-partners-with-g...

Sounds like what you're describing would be possible!

Re:Cloudflare Pages goes full stack by xrd on Friday November 19, 2021 @01:29PM (#29280570)
Thanks for the link!

Unfortunately, it looks like this only works with gitlab.com. I don't think my GitLab instance will work as this blog post describes. It's still an incredibly cool offering and I am sure there is a way to do it with just vanilla CI inside my GitLab instance.

Re:Cloudflare Pages goes full stack by brycewray on Wednesday November 17, 2021 @09:56AM (#29253836)
Great announcements today. Hoping you can share any expected progress on the long build times (chiefly initializing the build environment itself), which right now constitute the only real down-side of CFP IMHO.
Re:Cloudflare Pages goes full stack by nevikashah on Wednesday November 17, 2021 @12:19PM (#29255857)
Totally understand the frustration! Improving build times is at the front of our minds and the work is well underway - stay tuned for updates!
Re:Cloudflare Pages goes full stack by Scarbutt on Wednesday November 17, 2021 @12:24PM (#29255928)
It's not full stack until there is a real database offer ;)
Re:Cloudflare Pages goes full stack by jonsully on Wednesday November 17, 2021 @12:26PM (#29255952)
KV workers are pretty close FWIW
Re:Cloudflare Pages goes full stack by tn890 on Wednesday November 17, 2021 @11:30AM (#29255180)
If I just wanted to deploy a blog from github to Cloudflare pages, what would be the best way of doing that without writing javascript? Is there a way currently?
Re:Cloudflare Pages goes full stack by gregbrimble on Wednesday November 17, 2021 @11:44AM (#29255382)
Absolutely possible! If you've just got a folder of static assets, you can connect it up to Pages, and enter that directory as the "build output directory".

https://developers.cloudflare.com/pages/framework-guides/dep...

Re:Cloudflare Pages goes full stack by tn890 on Wednesday November 17, 2021 @12:01PM (#29255613)
Thank you. Docs are good, I'm already up and running :)
Re:Cloudflare Pages goes full stack by masa331 on Wednesday November 17, 2021 @11:53AM (#29255493)
For that you can use Github pages and you don't need to touch JS or Cloudflare
Re:Cloudflare Pages goes full stack by tn890 on Wednesday November 17, 2021 @12:00PM (#29255611)
Tried that, what I really like about Cloudflare is that it offers me more freedom than Github which basically forces you to use Jekyll if I'm not mistaken.
Re:Cloudflare Pages goes full stack by leodriesch on Wednesday November 17, 2021 @12:53PM (#29256371)
You are mistaken, you can deploy any static site.

I’ve deployed a couple of static documentation sites with automated builds with the help of GitHub Actions [0].

[0]: https://github.com/marketplace/actions/github-pages-action

Re:Cloudflare Pages goes full stack by masa331 on Wednesday November 17, 2021 @12:52PM (#29256361)
What do you mean by more freedom? You definitelly don't need Jekyll for Github pages. Any static page can be hosted on Github pages
Re:Cloudflare Pages goes full stack by bovermyer on Wednesday November 17, 2021 @11:35AM (#29255242)
Just last week I moved two of my personal projects from GitLab to GitHub just so I could use Pages for them.

If only I'd waited one more week...

Re:Cloudflare Pages goes full stack by xbenjii on Wednesday November 17, 2021 @10:38AM (#29254478)
Awesome! Do you know if/when there will be support for self-hosted Gitlab instances?
Re:Cloudflare Pages goes full stack by no_wizard on Wednesday November 17, 2021 @01:05PM (#29256530)
is this team hiring at all?
Re:Cloudflare Pages goes full stack by rita3ko on Wednesday November 17, 2021 @01:36PM (#29256988)