Next.js Discord

Discord Forum

Deploy compiled next projects to Vercel

Answered
Yellow-breasted Bunting posted this in #help-forum
Open in Discord
Yellow-breasted BuntingOP
Hi I have a client who wishes to deploy a project I made on their own Vercel Team but I would like to keep my source code private. Would the best way around this to be build a pipeline which will upload the production code to a separate repo and have their Vercel account read this instead. Or is this not recommended since Vercel might use their own magic in the deployment process?
Answered by joulev
I think you can use GitHub actions and the Vercel CLI:

* [Build the app](https://vercel.com/docs/cli/build)
* [Use the Vercel CLI to upload the prebuilt artefact](https://vercel.com/docs/cli/deploy#extended-usage)
View full answer

6 Replies

Fire ant
use ur own repo, make it private, and import your private repo to vercel
Answer
You need to do the prebuilt approach because otherwise the entire source code is available here
Yellow-breasted BuntingOP
Yeah thats what I thought, it's a shame there isnt a feature for this, but I guess it's a pretty niche use case aimed for freelancers