Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Empty page with Vercel

Open Klaudioz opened this issue 2 years ago • 7 comments

Describe the bug Trying to use Vercel, I can see the site for one second and after that, I got an empty website. I've tried with Chrome, Firefox and Safari

To Reproduce Steps to reproduce the behavior:

  1. Go to https://flowise-ui-delta.vercel.app

Expected behavior See the site

Additional context I've hosted the site with the Vercel hobby plan and the pro plan. The deployment doesn't have any issues. One weird thing is I can't see any logs: No active logs yet. Push changes to see results.

image

Klaudioz avatar May 10 '23 01:05 Klaudioz

Hey we have not tried hosting it on Vercel, thus not sure if Vercel will work

HenryHengZJ avatar May 12 '23 12:05 HenryHengZJ

Why shouldn't work on Vercel?

Klaudioz avatar May 12 '23 16:05 Klaudioz

I was able to get the frontend working - image

But having trouble connecting to backend API. Seems like we have to create a vercel.json file and deploy backend code packages/server and frontend packages/ui seperately.

So its not straight-forward

HenryHengZJ avatar May 12 '23 18:05 HenryHengZJ

AFAIK the frontend react is fine as you said to deploy on Vercel. Backend however needs bit of tweak as it's based on Express which at the fundamental level requires some form of server (Vercel is server less). It can be done but you would have to migrate the functions to be server less. https://vercel.com/guides/using-express-with-vercel It's might be straight forward with the first steps is rewriting the backend routes to go and get served from the Vercel api directory. Fair bit of refactoring though and its better to be done earlier than later if this is an architectural decision.

goldzulu avatar May 16 '23 08:05 goldzulu

Great that you were able to get frontend working, what would be better is if you shared how you did it so others can learn

ghost avatar May 19 '23 17:05 ghost

Hey all, Having a similar issue deploying Flowise onto Vercel 'successfully', but not able to load the UI ( check it out: https://forgedmartaiflow.vercel.app). Please share if anyone has been able to figure out how to solve this. Thanks in advance

ghost avatar May 19 '23 18:05 ghost

Hello, same issue for me since the /api route is not working 😞

mrasoahaingo avatar May 25 '23 11:05 mrasoahaingo