Skip to content

Conversation

@sashreek-x
Copy link
Contributor

This PR improves the vite.config.js for better performance, scalability, and deployment compatibility while maintaining simplicity and zero external plugin dependency.

Key Enhancements
✅ Added environment-based configuration using loadEnv for flexibility.
✅ Optimized build settings (target, minify, sourcemap, manual chunks).
✅ Improved CORS configuration for smoother development API testing.
✅ Explicit port handling and stable preview mode for deploy previews.
✅ Cleaned imports, ensured @ alias works seamlessly across all components.
✅ No extra plugins — completely deployment-safe for Vercel, Netlify, or Render.

Impact
This configuration makes AnimateHub’s frontend build process faster, predictable, and CI/CD-ready with consistent environment handling.

  1. Contributor Name :Sashreek Das
  2. Contributor Email ID :iamsashreeek@gmail.com
  3. Contributor Github Link :https://github.com/sashreek-x

regards,
Sashreek Das.

@vercel
Copy link

vercel bot commented Oct 21, 2025

@sashreek-x is attempting to deploy a commit to the premkolte's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

✨ Hi @sashreek-x! Thanks for submitting another pull request. Your continuous improvements are highly valued. Keep contributing! 🙌

@vercel
Copy link

vercel bot commented Nov 16, 2025

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

Project Deployment Preview Comments Updated (UTC)
animate-hub Ready Ready Preview Comment Nov 16, 2025 1:49pm

@Premkolte Premkolte merged commit eb64a34 into Premkolte:main Nov 16, 2025
3 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.

2 participants