-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great improvements, some questions #267
Comments
I'm not a project dev, but:
|
|
Hey @osseonews , thanks for your questions.
|
@tedy5 Astro + SonicJs is full stack. You can already use the internal API from SonicJs without using HTTP requests if you desire. If you working with a front end framework like React, you likey want a REST API however. |
@osseonews, I doubt that Pages are the same as Workers under the hood. @lane711 I'm working with Next.js and can query database/cache directly from Next, but CMS has to be hosted on separate subdomain, while it could be placed at /dashboard if it was written in Next.js :) |
You are misunderstanding the build process and routing vs the underlying platform. Anyway, believe what you will, and if you like Pages stick with it. However, I suggest you read the Pages function documentation on Cloudflare's website, where you will learn that: "Pages Functions allows you to build full-stack applications by executing code on the Cloudflare network with Cloudflare Workers. " I've used Pages for years myself. But, it's just an implementation on top of Workers. Pages only exists because the original way to deploy sites with Workers, called Worker Sites was way too complicated and lacked built in page routing, and a good build pipeline with GitHub integration. However, last year, Cloudflare introduced Workers Static Assets to replace Workers Sites. It brings all the features of Pages to Workers, so you have no need for Pages anymore and Worker Static Assets has more features now (except for routing - but you can use something like Hono for routing, if you want). Again, if you want to believe Pages is different, that's fine. No harm done. For others, I recommend using the new Workers Static Assets because it's simply better for many reasons (and I know Pages really well). With time Cloudflare will deprecate Pages because it serves no purpose anymore and there is no point dedicating resources to 2 different projects that aim to solve the same issue: how to easily build sites on top of Workers and have access to all the Cloudflare features. Good luck! Edit: If you read the Workers Static Assets pages on Cloudflare you will notice that they say: "We plan to bridge the gaps between Workers and Pages and provide ways to migrate your Pages projects to Workers." This is a pretty subtle way of telling you what the future will look like, and it's not Pages. |
Hey, thanks for keeping this project alive! Building something like this has always been my dream, but I've been busy with a lot of the other things. Anyway, the move to Astro seems to have been a great move as everything looks and feels better. A few questions:
The text was updated successfully, but these errors were encountered: