Getting Started
Connecting to GitHub only takes a few minutes. Here’s how to do it:- Head over to your project dashboard
- Navigate to Settings → Git
- Click the Connect to GitHub button
Authorizing Nhost
When you click the connect button, you’ll be redirected to GitHub where you’ll need to:- Install the Nhost GitHub App on your account
- Choose which repositories Nhost can access (you can select specific repos or grant access to all of them)
Configuring Your Repository
After authorizing the GitHub integration, you’ll need to tell Nhost a couple of important details:Base Directory
This is the folder in your repository where your Nhost folder lives. If your Nhost foder is in the root of your repository, you can leave this as/
. If it is in a subfolder (like /backend
), specify that path here.
Deployment Branch
Choose which branch should trigger deployments when pushed to. This is typically:main
ormaster
for production environmentsdevelop
orstaging
for development environments
How Deployments Work
Once everything is set up, here’s what happens:- You push code to your deployment branch
- We do the rest. We:
- Checkout your commit
- Deploy your
nhost.toml
- Deploy any new database migrations
- Apply GraphQL metadata
- Deploy new or modified serverless functions