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