piyushgarg-dev / vercel-clone

Vercel Clone From Scratch 🚀
https://youtu.be/0A_JpLYG7hM
169 stars 69 forks source link

Refactored Build Script ,fixed react build and Error Handling #14

Open nishantnz opened 6 months ago

nishantnz commented 6 months ago

This pull request enhances the existing build script to improve its functionality, error handling, and logging capabilities. Below is a summary of the changes made

Fixed: #9 (Not dynamic for all build)<- this issue

  1. Implemented dynamic detection of the build output folder to cater to both React (which typically uses the "build" folder) and Vite (which typically uses the "dist" folder) projects. The script identifies the appropriate folder for uploading files, ensuring compatibility with various project structures.

2. Improved Error Handling & Consistent Logging in Redis simultaneously

If you found this helpful Kindly review and merge this pull request at your earliest convenience. Thank you!