Connect a client's website to GitHub
For agencies: build your clients' sites, and your own, in your own GitHub repos, check each push as a preview, publish it, and point the domain.
If you're a TrustPager agency, you can build your clients' websites in your own GitHub repos, with Claude Code or any other tool, and host them on TrustPager. Every push builds a preview you can check, and one click makes it the live site. Everything happens at https://app.trustpager.com/agency/websites.
Not an agency, or want to connect a site in your own workspace? See https://app.trustpager.com/training/help-center/connect-your-github-to-your-website. It is the same system, and any workspace admin can use it.
1. Connect GitHub (agency owner or systems architect, once)
- Go to https://app.trustpager.com/agency/websites and click Connect GitHub at the top right.
- On GitHub, choose your account or organisation, and choose which repos TrustPager can see. You can pick just the repos for your clients' sites.
- GitHub brings you back to TrustPager, and your GitHub account shows as connected.
The app only sees the repos you choose. When the AI website editor changes a site and you click Publish, it commits the change straight to the connected branch, and the site goes live once the preview builds. If that branch is protected on GitHub, it opens a pull request for you to merge instead. To connect a second GitHub account or organisation, click Add a GitHub account.
On a client's site you can also use the client's own GitHub accounts, if they have connected one, as well as your agency's.
You can also see whether your agency's GitHub is connected on https://app.trustpager.com/auto/integrations, in your agency's own workspace. Its GitHub tile opens the Websites page, where connecting and changing accounts happens.
2. Connect a repo to a client
- On https://app.trustpager.com/agency/websites, find the client and click Connect repo.
- Choose the repo and the branch to publish from (usually main).
- Leave Publish automatically off if you want to check each preview first.
- Click Connect repo.
To move a site TrustPager already built into your GitHub, create a new, empty repo and switch on Start the repo from this website. TrustPager copies the site's current code into the repo first. It is refused if the repo already has code.
If the client has no website yet, one is set up for them at the same time. Hosting is $5 a month, charged to the client's own workspace. TrustPager works out how to build the site from its package.json. Under Build settings you can choose npm run build or No build (plain HTML) and set the output folder. Put any other build steps in the build script of your package.json.
Your agency's own sites
Your agency's own workspace is listed first on https://app.trustpager.com/agency/websites, marked Your agency. Connect your own marketing site or demo sites to your repos exactly as you would a client's. Hosting for those sites is charged to your agency's own workspace.
3. Push, check the preview, publish
Each push to the connected branch builds a preview. Pushes close together are built once, about two minutes after the last one. When the preview is ready, the client's row shows Preview ready and a Preview link. Check it, then click Publish to make it the live site.
Turn on Auto-publish for a client and every preview that builds goes live straight away, with no Publish click. Sync now builds the branch's latest commit again, and Disconnect stops pushes reaching the site (the live site stays as it is).
When a build fails
The client's row shows Failed and the end of the build log, which says what went wrong. Fix it in your repo and push again. If you work with Claude, give it the log.
What's copied, and the limits
- Files that look like secrets, such as .env files and keys, are never copied. The page lists anything that was left out. Keep secrets out of your repos.
- Websites hosted by TrustPager are static only. A push with a functions folder, a _worker.js file, a _routes.json or a wrangler config is refused, and so is a build that makes server code (for example an Astro page with
prerender = falseor a server adapter such as @astrojs/cloudflare): that preview is deleted and can't be published. For content that changes, like blog posts from your public notepads or your store's products, read it when the site builds: if the build calls TrustPager's website loader (website-loader-public with your site key and for=build), the site rebuilds itself a few minutes after that content changes. - Each repo can have up to 2,000 files and 50 MB. Leave build output and installed packages out of the repo.
- Each workspace can build 20 times a day. Each preview and each publish counts as one, and your agency's own sites count against the agency's own workspace.
Domains
Once a client's site is set up, open Domain under the client on https://app.trustpager.com/agency/websites to point their domain at it. You'll see the DNS records to add at their DNS provider, and the domain's status.
Checking from your own tools
An agency API key with Agency access can list your clients' websites, the repo each is built from, and their latest syncs and build errors. See the agency API key section of https://app.trustpager.com/training/help-center/agency-guide.
Need a hand? Submit a service request at https://app.trustpager.com/settings/service-requests.