Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Deploy with Vercel option fails #5

Open
aminamos opened this issue Nov 8, 2022 · 3 comments
Open

Deploy with Vercel option fails #5

aminamos opened this issue Nov 8, 2022 · 3 comments

Comments

@aminamos
Copy link

aminamos commented Nov 8, 2022

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

@jiftuq
Copy link

jiftuq commented Nov 11, 2022

me too

@refactornator
Copy link
Contributor

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: 74fe9d6

And it should deploy without failure now.

@refactornator
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants