Hacker News new | ask | show | jobs
by nevikashah 1679 days ago
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.
15 comments

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.

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
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!

This is the first thing I thought of as I was reading the server side section
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/

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!
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?
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.

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.
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!
Thanks. This makes Pages a non-starter for me. I look forward to trying it with direct upload!
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/

GitLab team-member here. So exciting to see GitLab support! I'll finally be giving Pages a try later today. :)
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.
support for monorepos are on deck and coming soon!
The link to the 'example to see the SvelteKit adapter' in the article is broken (https://github.com/lukeed/pages-fullstack)
So is the link to the usage limits.
working on this now - should be fixed soon
clear cache and cookies - docs are up :)
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!
The @sveltejs/adapter-cloudflare package isn't published to NPM yet.
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.
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?

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!

GitLab blog post: https://blog.cloudflare.com/cloudflare-pages-partners-with-g...

Sounds like what you're describing would be possible!

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.

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.
Totally understand the frustration! Improving build times is at the front of our minds and the work is well underway - stay tuned for updates!
It's not full stack until there is a real database offer ;)
KV workers are pretty close FWIW
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?
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...

Thank you. Docs are good, I'm already up and running :)
For that you can use Github pages and you don't need to touch JS or Cloudflare
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.
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

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
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...

Awesome! Do you know if/when there will be support for self-hosted Gitlab instances?
is this team hiring at all?