Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

refactor: improve allowed origins parsing logic for better clarity#78

Merged
An0n-00 merged 8 commits intomainfrom
dev
Dec 1, 2025
Merged

refactor: improve allowed origins parsing logic for better clarity#78
An0n-00 merged 8 commits intomainfrom
dev

Conversation

@An0n-00
Copy link
Member

@An0n-00 An0n-00 commented Dec 1, 2025

This pull request introduces a utility function to robustly parse the ALLOWED_ORIGINS environment variable and updates the prettier dependency to the latest version. The parsing logic now handles extra whitespace, brackets, and quotes, making origin configuration more reliable.

Environment variable parsing improvements:

  • Added a parseAllowedOrigins function in index.js to correctly handle and sanitize the ALLOWED_ORIGINS environment variable, ensuring more robust and flexible origin parsing.

Dependency updates:

  • Upgraded the prettier dependency from version 3.6.2 to 3.7.3 in package.json for improved formatting and bug fixes.

@An0n-00 An0n-00 self-assigned this Dec 1, 2025
@An0n-00 An0n-00 added 🐛bug Something isn't working as it should 🌟enhancement New feature or request dependencies Pull requests that update a dependency file chore automated stuff labels Dec 1, 2025
@An0n-00 An0n-00 merged commit bdd5841 into main Dec 1, 2025
1 check passed
oscarbrehier pushed a commit to oscarbrehier/streaming-scraper that referenced this pull request Dec 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🐛bug Something isn't working as it should chore automated stuff dependencies Pull requests that update a dependency file 🌟enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants