The struggle is real. I can only imagine
The struggle is real. I can only imagine the pain you went through. I'm strongly of the mind the cloudflare themselves should be producing these kinds of templates—so they can dog food their own work.
I hope you will consider submitting this to the remix.guide. appreciate it
8 Replies
Yes, I kind of don't understand that getting the frameworks on the "stage" is one thing, but the pain point (for me) is always getting the Environment variables and bindings to show up.
Regarding the RR7, nothing that worked with Remix - didn't work on RR7. Figuring out the errors took one week as official RR7 Cloudflare template is not doing the job correctly (unless deciding not to use Env variables).
Good to know Re: RR7 support. Didn't even realise this was possible already until now. Actually just got my app visible on RR7 by leveraging your template, and then realized I forgot to update my vite config entirely and yet the app still ran. I understand remix is doing their best to be future-proofed but sometimes you just have to bite the bullet and fail loudly otherwise weird corner cases start to creep in.
Also, the whole load context thing is still magic to me
And getting it to work properly with typescript has resulted in all sorts of type gymnastics. 😅
But if cloudflare is not going to do it, and no one can certainly build an app using anything they have given, that's my opinion at least; we need to make the templates that do function, and are up to date like yours, more visible to the community.
All Cloudflare would need to do is add a community template section to one of their web pages with a submit your template button and Bam problem solved
Yes. As far as I've experimented, I understand that it is possible to deploy much more than just described frameworks within the documentation. I also have managed to deploy a tanstack router as well, but everything stopped at the Env variables.
I must admit, that was few months back, so now I understand there is some ways how to implement it, but I havent foloowed to that anymore (as its still in development process).
@m.muiznieks https://github.com/rphlmr/react-router-hono-server weird licence but non-trivial and with a number of examples
GitHub
GitHub - rphlmr/react-router-hono-server: Remix with Hono in less t...
Remix with Hono in less than 10 seconds. Contribute to rphlmr/react-router-hono-server development by creating an account on GitHub.
Here's an auth example using bcrypt/supabase https://github.com/renaldyakb/hono-auth-route-app/
GitHub
GitHub - renaldyakb/hono-auth-route-app: Example project to protect...
Example project to protect route using JWT token in web application using hono - renaldyakb/hono-auth-route-app
Bun hono drizzle with YouTube video and the guy has other examples such as one using htmx https://github.com/cdbrw/cfw-bun-hono-drizzle
GitHub
GitHub - cdbrw/cfw-bun-hono-drizzle: Cloudflare Worker using Bun as...
Cloudflare Worker using Bun as the package manager, Hono for routing and Drizzle ORM to query the D1 database - cdbrw/cfw-bun-hono-drizzle
all of this will get the initial implementation going though non-trivial does usual mean auth (unless you're building just to landing pages site) so here's another with auth this one is hand rolled https://github.com/vhscom/private-landing
GitHub
GitHub - vhscom/private-landing: Quickly build RESTful APIs using C...
Quickly build RESTful APIs using Cloudflare Workers, Hono and Turso. - vhscom/private-landing
I also looked into remix.guide and it's not clear at all to me how to get things listed on there. Maybe you had better luck?