Skip to content

Commit 8ac15ca

Browse files
committed
Add Netlify callouts
1 parent 129333a commit 8ac15ca

File tree

12 files changed

+56
-56
lines changed

12 files changed

+56
-56
lines changed

docs/framework/react/start/hosting.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ Hosting is the process of deploying your application to the internet so that use
99

1010
TanStack Start is **designed to work with any hosting provider**, so if you already have a hosting provider in mind, you can deploy your application there using the full-stack APIs provided by TanStack Start.
1111

12-
However, since hosting is one of the most crucial aspects of your application's performance, reliability, and scalability, we highly recommend using [Vercel](https://vercel.com?utm_source=tanstack) for the best possible hosting experience.
12+
However, since hosting is one of the most crucial aspects of your application's performance, reliability, and scalability, we highly recommend using our Official Hosting Partner [Netlify](https://www.netlify.com?utm_source=tanstack).
1313

14-
## What is Vercel?
14+
## What is Netlify?
1515

16-
<a href="https://vercel.com?utm_source=tanstack" alt="Vercel Logo">
16+
<a href="https://www.netlify.com?utm_source=tanstack" alt="Netlify Logo">
1717
<picture>
18-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/vercel-dark.svg" width="280">
19-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/vercel-light.svg" width="280">
20-
<img alt="Convex logo" src="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/vercel-light.svg" width="280">
18+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/netlify-dark.svg" width="280">
19+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/netlify-light.svg" width="280">
20+
<img alt="Netlify logo" src="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/netlify-light.svg" width="280">
2121
</picture>
2222
</a>
2323

24-
Vercel is a leading hosting platform that provides a fast, secure, and reliable environment for deploying your web applications. With Vercel, you can deploy your TanStack Start application in just a few clicks and benefit from features like a global edge network, automatic scaling, and seamless integrations with GitHub and GitLab. Vercel is designed to make your development process as smooth as possible, from local development to production deployment.
24+
Netlify is a leading hosting platform that provides a fast, secure, and reliable environment for deploying your web applications. With Netlify, you can deploy your TanStack Start application in just a few clicks and benefit from features like a global edge network, automatic scaling, and seamless integrations with GitHub and GitLab. Netlify is designed to make your development process as smooth as possible, from local development to production deployment.
2525

26-
- To learn more about Vercel, visit the [Vercel website](https://vercel.com?utm_source=tanstack)
27-
- To sign up, visit the [Vercel dashboard](https://vercel.com/signup?utm_source=tanstack)
26+
- To learn more about Netlify, visit the [Netlify website](https://www.netlify.com?utm_source=tanstack)
27+
- To sign up, visit the [Netlify dashboard](https://www.netlify.com/signup?utm_source=tanstack)
2828

2929
## Deployment
3030

@@ -33,15 +33,38 @@ Vercel is a leading hosting platform that provides a fast, secure, and reliable
3333
3434
When a TanStack Start application is being deployed, the `server.preset` value in the `app.config.ts` file determines the deployment target. The deployment target can be set to one of the following values:
3535

36+
- [`netlify`](#netlify): Deploy to Netlify
3637
- [`vercel`](#vercel): Deploy to Vercel
3738
- [`cloudflare-pages`](#cloudflare-pages): Deploy to Cloudflare Pages
38-
- [`netlify`](#netlify): Deploy to Netlify
3939
- [`node-server`](#nodejs): Deploy to a Node.js server
4040
- [`bun`](#bun): Deploy to a Bun server
4141
- ... and more to come!
4242

4343
Once you've chosen a deployment target, you can follow the deployment guidelines below to deploy your TanStack Start application to the hosting provider of your choice.
4444

45+
### Netlify
46+
47+
Set the `server.preset` value to `netlify` in your `app.config.ts` file.
48+
49+
```ts
50+
// app.config.ts
51+
import { defineConfig } from '@tanstack/start/config'
52+
53+
export default defineConfig({
54+
server: {
55+
preset: 'netlify',
56+
},
57+
})
58+
```
59+
60+
Or you can use the `--preset` flag with the `build` command to specify the deployment target when building the application:
61+
62+
```sh
63+
npm run build --preset netlify
64+
```
65+
66+
Deploy you application to Netlify using their one-click deployment process, and you're ready to go!
67+
4568
### Vercel
4669

4770
Deploying your TanStack Start application to Vercel is easy and straightforward. Just set the `server.preset` value to `vercel` in your `app.config.ts` file, and you're ready to deploy your application to Vercel.
@@ -106,29 +129,6 @@ compatibility_date = "2024-11-13"
106129

107130
Deploy you application to Cloudflare Pages using their one-click deployment process, and you're ready to go!
108131

109-
### Netlify
110-
111-
Set the `server.preset` value to `netlify` in your `app.config.ts` file.
112-
113-
```ts
114-
// app.config.ts
115-
import { defineConfig } from '@tanstack/start/config'
116-
117-
export default defineConfig({
118-
server: {
119-
preset: 'netlify',
120-
},
121-
})
122-
```
123-
124-
Or you can use the `--preset` flag with the `build` command to specify the deployment target when building the application:
125-
126-
```sh
127-
npm run build --preset netlify
128-
```
129-
130-
Deploy you application to Netlify using their one-click deployment process, and you're ready to go!
131-
132132
### Node.js
133133

134134
Set the `server.preset` value to `node-server` in your `app.config.ts` file.

docs/framework/react/start/overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ TanStack Start is not for you if:
6868

6969
TanStack works closely with our partners to provide the best possible developer experience while also providing solutions that work anywhere and are vetted by industry experts. Each of our partners plays a unique role in the TanStack ecosystem:
7070

71-
- **Vercel**
72-
<a href="https://vercel.com?utm_source=tanstack" alt="Vercel Logo">
71+
- **Netlify**
72+
<a href="https://www.netlify.com?utm_source=tanstack" alt="Netlify Logo">
7373
<picture>
74-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/vercel-dark.svg" style="height: 40px;">
75-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/vercel-light.svg" style="height: 40px;">
76-
<img alt="Convex logo" src="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/vercel-light.svg" style="height: 40px;">
74+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/netlify-dark.svg" style="height: 40px;">
75+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/netlify-light.svg" style="height: 40px;">
76+
<img alt="Netlify logo" src="https://raw.githubusercontent.com/tanstack/tanstack.com/main/app/images/netlify-light.svg" style="height: 40px;">
7777
</picture>
7878
</a>
79-
The leading hosting platform for web applications that provides a fast, secure, and reliable environment for deploying your web applications. We work closely with Vercel to ensure that TanStack Start applications not only deploy seamlessly to their platform, but also implement best practices for performance, security, and reliability regardless of where you end up deploying.
79+
The leading hosting platform for web applications that provides a fast, secure, and reliable environment for deploying your web applications. We work closely with Netlify to ensure that TanStack Start applications not only deploy seamlessly to their platform, but also implement best practices for performance, security, and reliability regardless of where you end up deploying.
8080
- **Clerk**
8181
<a href="https://go.clerk.com/wOwHtuJ" alt="Clerk Logo">
8282
<picture>

e2e/start/basic-tsr-config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/start-basic-auth/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/start-basic-react-query/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/start-basic-rsc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/start-basic/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/start-clerk-basic/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/start-counter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This site is built with TanStack Router!
44

55
- [TanStack Router Docs](https://tanstack.com/router)
66

7-
It's deployed automagically with Vercel!
7+
It's deployed automagically with Netlify!
88

9-
- [Vercel](https://vercel.com/)
9+
- [Netlify](https://netlify.com/)
1010

1111
## Development
1212

examples/react/with-trpc-react-query/app.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
44

55
export default createApp({
66
server: {
7-
preset: 'vercel', // change to 'node' or 'bun' or anyof the supported presets for nitro (nitro.unjs.io)
7+
preset: 'netlify', // change to 'node' or 'bun' or anyof the supported presets for nitro (nitro.unjs.io)
88
experimental: {
99
asyncContext: true,
1010
},

0 commit comments

Comments
 (0)