meet icon indicating copy to clipboard operation
meet copied to clipboard

Deploy with Vercel option fails

Open aminamos opened this issue 3 years ago • 3 comments

When deploying with the vercel button, after entering environment variables, the build fails with:

Error: EEXIST: file already exists, symlink 'spaces.func' -> '/vercel/output/functions/api/token.func'

Screen Shot 2022-11-08 at 2 57 52 PM

aminamos avatar Nov 08 '22 22:11 aminamos

me too

jiftuq avatar Nov 11 '22 23:11 jiftuq

Hmm, I'm not able to reproduce that build failure, but I believe it's due to us putting a client side file into /api which Vercel tries to deploy as a serverless function.

I pushed a fix to main here: https://github.com/muxinc/meet/commit/74fe9d69ad81aa6921a10ccfbb865c1481d73c70

And it should deploy without failure now.

refactornator avatar Nov 15 '22 01:11 refactornator

I came across some surprising behavior by Vercel when I deployed using that button which was that it did not detect the project as a Next.js app. This was easy to fix by setting the Framework Preset to Next.js in Settings -> General. I will look into why Vercel is not detecting this as a Next.js app.

refactornator avatar Nov 15 '22 01:11 refactornator