-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vercel deployment on current master branch not working #14
Comments
Thank you for the report! I reproduced the issue. Octane started used workspaces and lerna to bundle both a server and a library for other apps within one repo. The function sources are located in Quick workaround (if you need to get Octane up and running) would be deploying using any other service that uses The actual solutions is one of:
Additionally, if we decide to remove Vercel support, a separate repo could be created specifically for Vercel-deployed serverless functions that would utilize Personally, I'd like to go for the first option and a separate Vercel repo. @bukatea @jordansexton what do you think? |
Thanks much for the quick reply. I think it makes sense to separate this project from Vercel, to make more clear to the users the option to run it locally. And a repo could be provided with the Vercel functions in the case that users want that functionality. For now, I will go ahead and run my own server for it, but will take a stab at (2) myself as well to see how easy that might be. Thanks much for this, keep me updated! |
@bukatea, actually, I found a way to deal with monorepos out of the box on Vercel — not sure how I missed this earlier: https://vercel.com/docs/concepts/monorepos Setup process:
The Next.js dependency has to be global so Vercel recognizes the server as a Next.js app.
The important part here is to set code location to server package. Alternatively, you can do this using UI.
Please check if it works for you. If it does, I'll submit the changes to the main repo. |
@sevazhidkov You're a genius! This works perfectly. Somehow, when I was playing around with Vercel settings, I did things that were very similar to what you did, because it turns out that changing the directory the code is located in I actually did change this in my testing to "packages/server", but for some reason it still wasn't deploying correctly. The only things that were different when I was doing it was that my project was listed under "Other" instead of "Next.js" for "Build & Development Settings", and my node version was 14, not 16. So, for a successful deployment on an existing project, all I needed to change was "Other" => "Next.js" for build and development settings, "14.x" => "16.x" for node version, and "" => "packages/server" for root directory. Once I did this though, it immediately started working! I think it might not be the node version and actually just the Other configuration was messing up some things, but fyi for anyone else out there. |
Describe the bug
Even after following SETUP.md step by step, the current vercel deployment does not work.
To Reproduce
Steps to reproduce the behavior:
config.json
with mint and authority pubkeys.SECRET_KEY
,RATE_LIMIT
, andRATE_LIMIT_INTERVAL
.Expected behavior
The deployment works.
Screenshots

Desktop
Additional context
I'm guessing because of the recent changes (adding
lerna
), it does not build properly on Vercel, even withlerna.json
in the root directory.The text was updated successfully, but these errors were encountered: