Deploy a TanStack Start app to Appwrite Sites_
Learn how to setup and deploy TanStack Start apps on Appwrite Sites.
1 min read
1. Create TanStack Start app
First, you must either create a TanStack Start app or setup the TanStack Start starter template.
Open your terminal, and run the following command.
npm create @tanstack/start@latestPush this project to a GitHub repository.
2. Create Appwrite project
Head to the Appwrite Console.

If this is your first time using Appwrite, create an account and create your first project.
3. Create site
Head to the Sites page in your Appwrite project, click on the Create site button, and select Connect a repository.
Connect your GitHub account and select the repository you intend to deploy (or allow all repositories, for future ease).
- Select the production branch and root directory from your repo.
- Verify that the correct framework is selected. In case an incorrect framework is visible, pick TanStack Start from the drop-down list.
- Confirm the install command, build command, and output directory in the build settings. The default build settings for TanStack Start are:
- Install command:
npm install - Build command:
npm run build - Output directory:
./dist(if you're using Nitro v2 or v3, this should be./.output)
- Install command:
- Add any environment variables required by the site. This is not necessary if you're deploying the starter app.
Click on the Deploy button.
4. Visit site
After successful deployment, click on the Visit site button.
Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.