Skip to content

Migrate Quran audio files to S3 bucket#3

Merged
aramb-dev merged 5 commits intocopilot/take-quran-page-downfrom
copilot/remove-audio-quran-folder
Dec 22, 2025
Merged

Migrate Quran audio files to S3 bucket#3
aramb-dev merged 5 commits intocopilot/take-quran-page-downfrom
copilot/remove-audio-quran-folder

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 22, 2025

Migrate Juz 'Amma audio files (surahs 78-114) from local assets to S3 storage at https://mtws-one.s3.us-east-1.amazonaws.com/audio/juz_amma/.

Changes

  • tracks.json: Updated all 37 track URLs to point to S3 bucket
  • listen-to-quran/index.html: Updated audio source to use S3 URL and restored the audio player (removed maintenance notice)
  • Removed local MP3 files: Deleted 078.mp3 through 114.mp3 from assets/audio/quran/
  • Retained: album-cover.jpeg and tracks.json remain in the quran folder for metadata
// Before
"url": "/assets/audio/quran/078.mp3"

// After  
"url": "https://mtws-one.s3.us-east-1.amazonaws.com/audio/juz_amma/078.mp3"

Audio Player Screenshot

Original prompt

remove the audio quran folder and replace the links with https://mtws-one.s3.us-east-1.amazonaws.com/audio/juz_amma/078.mp3 but for every surah from 78-114.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel bot commented Dec 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dawah Ready Ready Preview, Comment Dec 22, 2025 7:09pm

Copilot AI changed the title [WIP] Remove audio Quran folder and update links for surahs 78-114 Migrate Quran audio files to S3 bucket Dec 22, 2025
Copilot AI requested a review from aramb-dev December 22, 2025 16:59
@aramb-dev aramb-dev marked this pull request as ready for review December 22, 2025 17:07
Copilot AI review requested due to automatic review settings December 22, 2025 17:07
@aramb-dev
Copy link
Copy Markdown
Member

@copilot you gotta remove the 'under maintanece'

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates Juz 'Amma Quran audio files (surahs 78-114) from local storage to AWS S3 bucket hosting, reducing repository size while maintaining functionality through external CDN-like delivery.

Key Changes:

  • Updated all 37 track URLs in tracks.json to point to S3 bucket at https://mtws-one.s3.us-east-1.amazonaws.com/audio/juz_amma/
  • Removed 37 local MP3 files (078.mp3 through 114.mp3) from the repository
  • Updated audio source reference in commented HTML player markup to match new S3 location

Reviewed changes

Copilot reviewed 2 out of 39 changed files in this pull request and generated no comments.

File Description
assets/audio/quran/tracks.json Updated all 37 track URLs from local paths to S3 bucket URLs while preserving local album cover image references
audio/listen-to-quran/index.html Updated audio source in commented player markup from local path to S3 URL for consistency
assets/audio/quran/078.mp3 - 114.mp3 Removed 37 local MP3 files as they're now hosted on S3

The changes are consistent and complete. The existing crossorigin="anonymous" attribute on the audio elements ensures proper CORS handling for the S3-hosted files. The local album cover image is appropriately retained for metadata purposes.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 22, 2025

@copilot you gotta remove the 'under maintanece'

Removed the maintenance notice and restored the audio player in commit 9489cbe.

Audio Player Screenshot

…andling

Remove Web Audio API usage (AudioContext, gainNode) for volume control,
switching to direct audioElement.volume manipulation. Add .catch() handlers
to audio.play() calls in both audio.js and playlist-helper.js to handle
playback errors, such as autoplay policy restrictions.

Also add .vscode/settings.json for Python environment configuration and
update .gitignore with Snyk security rules.
This document outlines the roadmap for migrating the current static Da'wah website to Next.js App Router, covering project initialization, asset migration, component refactoring, routing, feature updates, SEO, performance optimizations, and deployment.
@aramb-dev aramb-dev merged commit b3e20ba into copilot/take-quran-page-down Dec 22, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants