Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deploy Project to Vercel #236

Open
1 of 4 tasks
mahid797 opened this issue Feb 26, 2025 · 0 comments
Open
1 of 4 tasks

Deploy Project to Vercel #236

mahid797 opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
Core Work to do on the core system of the App 🌱Nice-to-Have Enhancements, Refactors, UI tweaks, or non-critical optimizations
Milestone

Comments

@mahid797
Copy link
Collaborator

mahid797 commented Feb 26, 2025

We need to deploy a preview version of the project to Vercel to allow for easy sharing, testing, and showcasing of the application. This is not a production deployment but rather a demo/preview environment for internal reviews and feedback.

The deployment process will be broken down into four sub-issues:

📋 Goals :

  • Provide a stable demo/preview environment accessible via a Vercel link.
  • Ensure the codebase builds successfully with no errors and minimal warnings.
  • Maintain consistent deployment practices for future updates.
@mahid797 mahid797 added Core Work to do on the core system of the App 🌱Nice-to-Have Enhancements, Refactors, UI tweaks, or non-critical optimizations labels Feb 26, 2025
@mahid797 mahid797 added this to the v0.1 milestone Feb 26, 2025
mahid797 added a commit that referenced this issue Mar 1, 2025
This PR resolves **all build errors** preventing the deployment of the
project preview to **Vercel**. The changes include fixing TypeScript
issues, cleaning up outdated code, updating core dependencies, and
refactoring components and services to comply with **Next.js 15** and
**React 19** standards. These updates ensure improved stability,
maintainability, and compatibility with modern development practices.
Closes #237 and #238

---

## 🔑 **Changes Summary**  
- 🚀 **Updated project dependencies** in `package.json` to the latest
stable versions:
- Upgraded to **Next.js 15** for enhanced App Router capabilities and
build optimizations.
- Upgraded to **React 19**, incorporating automatic batching and updated
lifecycle management.
- Updated **Material-UI (MUI)** to **v6.4.5** for improved component
styling and performance.
- 🔑 **Updated authentication logic**:
- Refactored `api\auth\[...nextauth]\route.ts` to use `authOptions.ts`.
  - Removed unused request parameters.
- 🛠️ **Refactored API routes and page components** to align with
**Next.js 15** structure and features.
- ✉️ **Disabled email sending functionality** for demo deployment:
  - Removed `react-email` usage.
- Refactored associated email components to prevent unintended triggers.
- 🔍 **Resolved TypeScript type errors** across the codebase for stricter
type safety.
- 🧹 **Removed outdated code** and **deprecated seed options** to
streamline the build process.
- 📝 **Improved environment variable management**:
- Created a new **`.env.example`** to document necessary environment
variables.
- 🔧 **Fixed HTML entity encoding issues** for consistent content
rendering.

> ⚠️ **Important:**  
> - **Next.js 15** introduces breaking changes in routing and server
actions.
> - **React 19** includes automatic batching, updated hooks behavior,
and strict mode improvements.
> - Refer to the [Next.js 15 Migration Guide](https://nextjs.org/docs)
and [React 19 Release Notes](https://react.dev) for details.

---

> ### 🔗**Part of:** #236 - Deploy Project Preview to Vercel

---------

Co-authored-by: Sepideh Shahbazi <153979527+SepidehShahbazi@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Core Work to do on the core system of the App 🌱Nice-to-Have Enhancements, Refactors, UI tweaks, or non-critical optimizations
Projects
None yet
Development

No branches or pull requests

2 participants