Can I deploy a Next.js app automatically from GitHub?
Yes. Connect your GitHub repository once, and every push to your chosen branch builds and deploys your Next.js app automatically. It works on every paid plan, from Starter at £12 a month.
When you connect GitHub, we add the push webhook (the signal GitHub sends us on every push) to your repository for you. GitLab and Bitbucket repositories work too.
You watch the build log live in the dashboard, and you can deploy a specific commit or roll back to an earlier deploy. Deploys run one at a time for each site: push twice in quick succession and the newest commit wins.
Your app gets a free address at yourapp.apps.g7cloud.com, and you can add your own domain with free SSL. On Pro, Studio, Agency, Solo Plus and Solo HA, every pull request also gets its own preview copy of the app.
Your app keeps no files between deploys, so store uploads and anything else that must last in a database. Your own Dockerfile works too, including one in a sub-folder of the repository. More on the Next.js hosting page.
Related questions
How do environment variables work?
Environment variables are the settings and secrets your app reads, such as API keys and database addresses. You set them for each site in the dashboard, and your app can read them both while it builds and while it runs.
Full answerHow much does a PostgreSQL database cost?
£6 a month for each GB of memory the database has, starting at £6 a month for 1 GB. A standby copy that takes over if the database fails doubles the price. It is the same on every paid plan.
Full answerHow does git deployment work?
Connect a GitHub, GitLab or Bitbucket repository and choose a branch. Each push to that branch builds and deploys your app, with the build log shown live in the dashboard.
Full answerWhat databases are available?
Every site gets its own MySQL database, included in your plan and never shared with another site. On any paid plan you can also add managed PostgreSQL, Redis and ClickHouse databases, from £6 a month each.
Full answer