ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
16.73k stars 1.56k forks source link

Make this Perplexica repo deployable on Vercel #8

Closed arunkumarakvr closed 7 months ago

arunkumarakvr commented 7 months ago

Feature Request: Enable Deployment on Vercel

Is your feature request related to a problem? Please describe. Currently, the repository can't be deployed directly on Vercel, which limits its accessibility and ease of deployment for users who prefer using Vercel's platform.

Describe the solution you'd like I'd like to see support added to the repository so that it can be easily deployed on Vercel. This would involve updating the project's configuration files and dependencies to ensure compatibility with Vercel's deployment environment.

Describe alternatives you've considered One alternative could be deploying the repository on other platforms that support the current configuration. However, adding support for Vercel would offer users more deployment options and flexibility.

Additional context Providing the option to deploy on Vercel would enhance the accessibility and usability of Perplexica, attracting more users and contributors to the project. Additionally, it would align with the goal of making the project more widely available and user-friendly.

ItzCrazyKns commented 7 months ago

Hi, Vercel doesn't supports websockets and Perplexica uses websockets as its core functionality and hence, Perplexica cannot be fully deployed on Vercel.

arunkumarakvr commented 7 months ago

https://vercel.com/guides/do-vercel-serverless-functions-support-websocket-connections

arunkumarakvr commented 7 months ago

Whatever it is, you've already done a nice job indeed! Keep up the good work!

ItzCrazyKns commented 7 months ago

Thank you, I've seen all of those, but that is a completely different story. The backend is separate from the frontend in Perplexica and needs to be deployed separately. Specifically, deploying a backend WebSocket server on Vercel is not possible as Vercel primarily supports stateless functions and static sites, which don't maintain persistent connections required by WebSockets.

arunkumarakvr commented 7 months ago

@ItzCrazyKns Is this Perplexica repo already production ready? If not, when will it become production ready?