As of June 2024, we plan to migrate the rematch service from AWS Lambda to Cloudflare Worker. During this time, we need to maintain two build and deploy pipelines in parallel.
Staging & production traffic may be diverted to either platform, without a deployment, by updating
the REMATCH_LAMBDA_URL
env var in the CMS app.
rematching$ nvm use && npm install
- Install wrangler locally
rematching$ ./deploy.sh <staging|prod>
cd cloudflare_rematch && nvm use
ensure you are using Node 20export PATH=./node_modules/.bin:$PATH
may be necessary to access the wrangler executable- [Optional] Open the Cloudflare worker UI in a browser, for monitoring.
cloudflare_rematch$ ./deploy.sh <staging|prod>
- [Optional] Browse the
lambdas/
directory in Postman, which contains idempotent POST requests with known-working paylods for smoketesting in any environment.