diff --git a/docs/start/framework/react/guide/hosting.md b/docs/start/framework/react/guide/hosting.md index 7c85e4ade1..e37c2e351d 100644 --- a/docs/start/framework/react/guide/hosting.md +++ b/docs/start/framework/react/guide/hosting.md @@ -24,6 +24,7 @@ Once you've chosen a deployment target, you can follow the deployment guidelines - [`vercel`](#vercel): Deploy to Vercel - [`railway`](#nodejs--railway--docker): Deploy to Railway - [`node-server`](#nodejs--railway--docker): Deploy to a Node.js server +- [`hostinger`](#hostinger): Deploy to Hostinger - [`bun`](#bun): Deploy to a Bun server - [`appwrite-sites`](#appwrite-sites): Deploy to Appwrite Sites - ... and more to come! @@ -237,6 +238,28 @@ You can start your application by running: npm run start ``` +### Hostinger + +[Hostinger](https://www.hostinger.com) can host TanStack Start applications on its Node.js hosting. + +Follow the [`Nitro`](#nitro) deployment instructions to produce a Node.js server build. Nitro writes the output to `.output`, using `.output/server/index.mjs` as the server entry point. + +1. Ensure `build` and `start` scripts are present in your `package.json` file: + +```json + "build": "vite build", + "start": "node .output/server/index.mjs" +``` + +2. Push your project to a GitHub repository. + +3. In [hPanel](https://hpanel.hostinger.com), create a Node.js application, connect your repository, and set: + + - **Build command:** `npm run build` + - **Entry point:** `.output/server/index.mjs` + +4. Deploy. Once the build completes, you can attach a custom domain and Hostinger will provision HTTPS automatically. + ### Bun > [!IMPORTANT] diff --git a/docs/start/framework/solid/guide/hosting.md b/docs/start/framework/solid/guide/hosting.md index e6a3b00201..f22d38778b 100644 --- a/docs/start/framework/solid/guide/hosting.md +++ b/docs/start/framework/solid/guide/hosting.md @@ -24,6 +24,7 @@ Once you've chosen a deployment target, you can follow the deployment guidelines - [`vercel`](#vercel): Deploy to Vercel - [`railway`](#nodejs--railway--docker): Deploy to Railway - [`node-server`](#nodejs--railway--docker): Deploy to a Node.js server +- [`hostinger`](#hostinger): Deploy to Hostinger - [`bun`](#bun): Deploy to a Bun server - [`appwrite-sites`](#appwrite-sites): Deploy to Appwrite Sites - ... and more to come! @@ -231,6 +232,28 @@ You can start your application by running: npm run start ``` +### Hostinger + +[Hostinger](https://www.hostinger.com) can host TanStack Start applications on its Node.js hosting. + +Follow the [`Nitro`](#nitro) deployment instructions to produce a Node.js server build. Nitro writes the output to `.output`, using `.output/server/index.mjs` as the server entry point. + +1. Ensure `build` and `start` scripts are present in your `package.json` file: + +```json + "build": "vite build", + "start": "node .output/server/index.mjs" +``` + +2. Push your project to a GitHub repository. + +3. In [hPanel](https://hpanel.hostinger.com), create a Node.js application, connect your repository, and set: + + - **Build command:** `npm run build` + - **Entry point:** `.output/server/index.mjs` + +4. Deploy. Once the build completes, you can attach a custom domain and Hostinger will provision HTTPS automatically. + ### Bun Follow the [`Nitro`](#nitro) deployment instructions.