vercel-clone
vercel-clone copied to clipboard
Refactored Build Script ,fixed react build and Error Handling
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
-
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!