2b48e6d04b
* Initial commit (by create-cloudflare CLI) * Changed the prettier rules * Started writing Readme and got dev working * Validate the request, parse the event and respond with the correct format * Use ulidx instead of ulid in core * Removed some boilerplate and use new function for sendEvent * Removed old ulid package * When handling a webhook, it’s not an error if the HTTP endpoint environment isn’t found * If the env vars aren’t set, log the request and pass it through * Pass requests through. Setup the env vars * Flipped the API key detection because we can enforce that it’s the shape of a private API key * Progress with sendEvent proxy * Events are being put on the SQS queue * The SQS event queue is working * Make sure there’s a timestamp before enqueuing the evnet * Log the sqs_event, not API key * Added a bit more detail to the readme * Improved the Cloudflare logs * We don’t need the global.window hack for AWS, just globalThis * Removed commented out wrangler.toml values * Reworked the proxy to make it easier to add more endpoints * Use json utility to send Responses * Start work on proxying bulk events
22 lines
446 B
JSON
22 lines
446 B
JSON
{
|
|
"name": "proxy",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"deploy": "wrangler deploy",
|
|
"dev": "wrangler dev"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20230419.0",
|
|
"typescript": "^5.0.4",
|
|
"wrangler": "^3.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-sqs": "^3.445.0",
|
|
"@trigger.dev/core": "workspace:*",
|
|
"ulidx": "^2.2.1",
|
|
"zod": "3.22.3",
|
|
"zod-error": "1.5.0"
|
|
}
|
|
}
|