Svix The 'credentials' field on 'RequestInitializerDict' is not implemented
const svix = new Svix(SVIX_API_KEY);
try {
const response = await svix.message.create(SVIX_APP_ID, {
eventType: SVIX_EVENT_TYPE,
eventId: generateUniqueId(),
payload: { ...payload, eventType: SVIX_EVENT_TYPE },
});
return response;
} catch (error) {
console.log('🚀 ~ notify_discord_using_Svix ~ error:', error);
throw error;
}
1 Reply
The credentials field isn't supported in Workers
oh looks like you already got an answer: https://discord.com/channels/595317990191398933/1116415034646601849/1232046791076089906