This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import crypto from "crypto"; | |
| import type { NextApiRequest, NextApiResponse } from "next"; | |
| import { buffer } from "micro"; | |
| export const config = { | |
| api: { | |
| bodyParser: false, | |
| }, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "recommendations": { | |
| "convex": { | |
| "fileStructure": { | |
| "queries": "convex/{feature}/queries.ts", | |
| "mutations": "convex/{feature}/mutations.ts", | |
| "actions": "convex/{feature}/actions.ts" | |
| }, | |
| "rules": [ | |
| "Actions must include 'use node' when using Node.js packages", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Builds an email payload for sending campaign emails through an email service provider. | |
| * | |
| * This function takes campaign details and recipient information to construct a complete | |
| * email payload that includes: | |
| * - Sender information (from name and email) | |
| * - Recipient email | |
| * - Subject line | |
| * - Reply-to address | |
| * - Unsubscribe URL (merged into both HTML and plain text content) |
OlderNewer