This file contains 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
const Recipient = require('mailersend').Recipient; | |
const EmailParams = require('mailersend').EmailParams; | |
const BulkEmails = require('mailersend').BulkEmails; | |
const MailerSend = require('mailersend'); | |
const users = require('./users'); | |
const MAILERSEND_API_KEY = process.env.MAILERSEND_API_KEY; | |
if (!MAILERSEND_API_KEY) { | |
console.error('MAILERSEND_API_KEY is required'); |
This file contains 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
addEventListener('fetch', (event) => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
async function handleRequest(request) { | |
const url = new URL(request.url); | |
const { pathname, search } = url; | |
var newPathname = pathname; | |
if (pathname.startsWith('/docs')) { | |
newPathname = pathname.replace('/docs', ''); |
This file contains 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
CANNY_API_KEY=<your_canny_api_key> |
This file contains 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
<windows> | |
<instructions> | |
You are being provided with textfield content from windows the user has asked you to focus on. | |
User-selected text is enclosed within <user__selection> tags (these tags are not part of the original content and should never be included in your response). When the user has selected text, focus your response on that text. For example, if the user asks about "this," they are likely referring to the selected text. | |
</instructions> | |
<window> | |
<title>NotesGPT — Constants.swift</title> | |
<app_name>Xcode</app_name> | |
<textfields> | |
<textfield id="0"> |
OlderNewer