This commit introduces a durable object to handle Anilist GraphQL requests, with the goal of preventing request duplication. The durable object is designed to cache responses from the Anilist API, with a TTL based on the `nextAiringEpisode` field in the response. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
21 lines
365 B
TOML
21 lines
365 B
TOML
main = "src/index.ts"
|
|
|
|
name = "aniplay-v2"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
compatibility_date = "2024-09-23"
|
|
|
|
[vars]
|
|
TURSO_URL = "libsql://aniplay-v2-silverandroid.turso.io"
|
|
ENABLE_ANIFY = false
|
|
|
|
[observability]
|
|
enabled = true
|
|
|
|
[[durable_objects.bindings]]
|
|
name = "ANILIST_DO"
|
|
class_name = "AnilistDo"
|
|
|
|
[[migrations]]
|
|
tag = "v1"
|
|
new_classes = ["AnilistDo"]
|