UPSTASH_REDIS_REST_URL and
UPSTASH_REDIS_REST_TOKEN for the next steps.
fastly init. Select [2] JavaScript,
then [2] Empty starter for JavaScript
fastly compute publish. You need to add your Upstash database’s endpoint as a
backend and select 443 as its port.
src/index.js as below:
fastly compute deploy
After deployment, the CLI logs the endpoint. You can check the logs with:
fastly log-tail --service-id=<YOUR_FASTLY_SERVICE_ID>
fastly.toml as below:
fastly compute serve