Skip to main content
Once you’ve set up all of the above services, you can now deploy your app to Vercel.
1

Deploy code to GitHub

If you haven’t already, push up your cloned repository to GitHub by running the following commands:
Terminal
git add .
git commit -m "Initial commit"
git push origin main
2

Create a new Vercel project

In your Vercel account, create a new project. Then, select your GitHub repository and click Import.Make sure that your Framework Preset is set to Next.js and the Root Directory is set to apps/web.
Vercel Framework Preset and Root Directory
In the Environment Variables section, add all of the environment variables from your .env file by copying all of them and pasting it into the first input field. A few notes:
  • Replace the BETTER_AUTH_URL environment variable with the app domain that you will be using (e.g. https://app.acme.com).
Click on Deploy to deploy your project.
If you get a No Output Directory called "public" was found after the build completed error, make sure that your Vercel deployment settings to make sure that they match the following:
Vercel Deploy settings
3

Done!

Once the deployment is complete, you should be able to visit your app domain (e.g. https://app.acme.com) and see the following login page:
Login Page

Next Steps

Congratulations! You’ve successfully self-hosted Agentset. If you run into any issues or have questions, please: