Commit Graph

9 Commits

Author SHA1 Message Date
Ritesh Ghosh 9d379ec4fe feat(envs): standardized env examples and add new redis connection url env 2024-12-07 21:05:50 +05:30
Ritesh Ghosh 46f688ac12 Aniwatch API Version 2 (#66)
BREAKING CHANGE:

* chore: remove files that are not necessary for api v2

* test: update existing tests to use  pkg

* feat: organized aniwatch api envs and add more info about them

* feat: update tsconfig to include strict noUnsed params

* feat(api homepage): revamp api home page

* feat: update wani kuni image

* feat: add dot img

* feat: use hono cors

* feat: use hono rate limiter

* build: remove unnecessary deps, add ones needed and update description

* feat: add hianime routes and their handlers

* feat: update vercel deployment file

* docs: update logo and scraper docs, add envs section

* feat: update main server file

* feat: update peronal deployments caution section
2024-10-06 01:13:23 +05:30
Ritesh Ghosh 6ce6b105c7 refactor: rename WINDOWMS env to WINDOW_MS 2024-10-04 12:25:04 +05:30
Ritesh Ghosh e30d983996 refactor: update .env.example formatting 2024-10-04 12:22:03 +05:30
Divyansh 91fd0918c3 Enhance CORS Configuration for Production Security
📌 Removed the wildcard (*) origin and replaced it with trusted origins from .env.

📌 Introduced environment variable (CORS_ALLOWED_ORIGINS) for dynamic origin management.

📌 Improved security by blocking untrusted origins and methods.

📌 Enhanced performance with maxAge for caching preflight responses.

📌 No breaking changes, as the fallback origin is set to http://localhost:4000 for development, ensuring compatibility with local setups.
2024-10-01 04:55:14 +00:00
Ayush Choudhary c3ee76a06b Added .env.example 2024-02-28 12:42:05 +00:00
Ritesh Ghosh 02663b98fb refactor(env): removed .env.example file 2023-08-13 19:22:28 +05:30
Ritesh Ghosh 18c34ea307 chore(env): updated example env file 2023-08-02 13:20:14 +05:30
Ritesh Ghosh 35e61131b3 initial commit 2023-08-01 13:09:50 +05:30