Adi
Adi
CDCloudflare Developers
Created by Adi on 9/14/2024 in #vitest-integration-beta
Hey all, I tried to search for solutions
Made a Github issue for this - https://github.com/cloudflare/workers-sdk/issues/6715 Also provided a minimal reproduction repository.
1 replies
CDCloudflare Developers
Created by bloushi on 5/14/2024 in #pages-help
Debugging a deploy issue in a Remix + Vite Project
The only thing I can think off for react-email is to remember to enable nodejs_compat in production
13 replies
CDCloudflare Developers
Created by bloushi on 5/14/2024 in #pages-help
Debugging a deploy issue in a Remix + Vite Project
Like you suggested, I have it split out into it's own worker right now (using RPC), other projects call into it
13 replies
CDCloudflare Developers
Created by bloushi on 5/14/2024 in #pages-help
Debugging a deploy issue in a Remix + Vite Project
oooh you're using react-email? Yeah look I've had a lot of issues with that even in workers. Especially if you add in tailwind it makes a massive bundle. Maybe you're hitting some limits there?
13 replies
CDCloudflare Developers
Created by ai.alok on 5/13/2024 in #pages-help
Get Previews for PRs from forks
I haven't tried for forks, but the steps above work for PRs in the main repo. I shared it to give an example of how one might do preview comments. For forks, you'll just have to work out how to grant access to secrets etc. Which I think are available if you approve workflows?
22 replies
CDCloudflare Developers
Created by ai.alok on 5/13/2024 in #pages-help
Get Previews for PRs from forks
Unfortunately it's a private repo, I can't share it
22 replies
CDCloudflare Developers
Created by bloushi on 5/14/2024 in #pages-help
Debugging a deploy issue in a Remix + Vite Project
Just to give you some hope, I am running multiple remix vite apps in production, so it's definitely possible. Don't give up :MeowHeartCloudflare:
13 replies
CDCloudflare Developers
Created by bloushi on 5/14/2024 in #pages-help
Debugging a deploy issue in a Remix + Vite Project
Just to confirm, when you're running it locally, are you using vite dev or running a full build then using pages dev
13 replies
CDCloudflare Developers
Created by alka_99 on 5/11/2024 in #pages-help
Email Provider compatible with cloudflare pages
You'll need to use their REST API. Something like this
const response = await fetch('https://api.sendgrid.com/v3/mail/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${env.SENDGRID_API_KEY}`,
},
body: JSON.stringify({
personalizations: [{ to: [{ email: options.to }], subject: options.subject }],
from: { email: 'from-email' },
reply_to: { email: 'to-email' },
content: [
{
type: 'text/plain',
value: 'YOUR_EMAIL_TEXT',
},
{
type: 'text/html',
value: 'YOUR_EMAIL_HTML',
},
],
mail_settings: { sandbox_mode: false // as-needed } },
}),
});
const response = await fetch('https://api.sendgrid.com/v3/mail/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${env.SENDGRID_API_KEY}`,
},
body: JSON.stringify({
personalizations: [{ to: [{ email: options.to }], subject: options.subject }],
from: { email: 'from-email' },
reply_to: { email: 'to-email' },
content: [
{
type: 'text/plain',
value: 'YOUR_EMAIL_TEXT',
},
{
type: 'text/html',
value: 'YOUR_EMAIL_HTML',
},
],
mail_settings: { sandbox_mode: false // as-needed } },
}),
});
3 replies
CDCloudflare Developers
Created by ai.alok on 5/13/2024 in #pages-help
Get Previews for PRs from forks
Had to send it as a file, the message was too long
22 replies