jensen
jensen
CDCloudflare Developers
Created by Christer on 3/26/2024 in #pages-help
Can't get service binding to work when developing locally
I am currently doings this. I have two CF workers that I bind to my pages app. One is for a db proxy and the other is email rendering. I can bind them in development, but only when the workers are running in dev as well. I run my pages app, and the 2 cf workers in dev mode concurrently. This seems to let me use service bindings in dev locally
2 replies
CDCloudflare Developers
Created by sylver on 3/19/2024 in #pages-help
How can I view the `wrangler pages deploy` build output, or check the size limit being hit?
8 replies
CDCloudflare Developers
Created by sylver on 3/19/2024 in #pages-help
How can I view the `wrangler pages deploy` build output, or check the size limit being hit?
What are you using? Can you point me towards _worker.js?
8 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
looks like it is 1MB on the free plan, and 10MB on the paid plan
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
so depends on the machine running the code I guess
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
i think they said 400ms
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
all good, I'm actually curious if it is possible to use the tailwind stuff for react-email with workers. I haven't bothered yet, but I'll add to my list. May need to prebuild the email templates rather than load the tailwind runtime
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
but the true size of what is loaded isn't represented by just the build dir
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
I figured it out by going through your build/server/index.js and having some familiarity with the libraries
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
there are still a lot of imports from node_modules
166 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
the build output dir is not the entire bundle
166 replies
CDCloudflare Developers
Created by sylver on 3/19/2024 in #pages-help
How can I view the `wrangler pages deploy` build output, or check the size limit being hit?
When you deploy with wrangler you don't get to see the log output for the error. When you hook the project up to git and deploy that way, you can see the error causing it to fail. I just helped someone in another thread who was having an issue because they were importing @react-mail/components which included a 6MB tailwind.js file. I haven't used _worker.js for SSR before, but first thing would likely be getting the error output.
8 replies
CDCloudflare Developers
Created by LeftHandRyan on 3/18/2024 in #pages-help
Deployment failed, no other information
You would also have to change your impor for import { renderAsync } from '@react-email/render'
166 replies