Research-Stack/4-Infrastructure/workers/s2-proxy/wrangler.toml
allaun 55d3c281c4 feat(infra): Semantic Scholar Cloudflare worker proxy
Add s2-proxy worker (index.js, run_after_key.sh, wrangler.toml) for
Semantic Scholar API proxying.
2026-06-21 01:04:19 -05:00

26 lines
889 B
TOML

name = "s2-proxy"
main = "index.js"
compatibility_date = "2024-01-01"
workers_dev = true
# KV namespace for response caching.
# Create with: wrangler kv namespace create S2_CACHE
# Then paste the id below.
[[kv_namespaces]]
binding = "S2_CACHE"
id = "e7e05154bb734928bf6a6a5cf0fc7f0a"
# S2_API_KEY is a secret — never put it in wrangler.toml.
# Set with: wrangler secret put S2_API_KEY
# Then paste your key when prompted.
#
# Get a free S2 API key at: https://www.semanticscholar.org/product/api
# One key per account. For N-worker deployment, use N accounts/keys.
# To deploy multiple instances with different keys:
# cp wrangler.toml wrangler-2.toml # change name = "s2-proxy-2"
# wrangler deploy --config wrangler-2.toml
# wrangler secret put S2_API_KEY --config wrangler-2.toml
# Deployed worker URL (set after first deploy):
# https://s2-proxy.researchstack.workers.dev