Skip to content

Commit 165be4d

Browse files
authored
fix: update netlify addon for upcoming de-nitro changes (#169)
fix: update `netlify` addon for upcoming changes
1 parent 155ae84 commit 165be4d

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
## Setting up Netlify
22

3-
First install the Netlify CLI with:
3+
Install the [`@netlify/vite-plugin-tanstack-start`](https://www.npmjs.com/package/@netlify/vite-plugin-tanstack-start) plugin:
44

55
```bash
6-
npm install -g netlify-cli`
6+
npm install -D @netlify/vite-plugin-tanstack-start
77
```
88

9-
```bash
10-
netlify init
9+
Add the plugin to your `vite.config.ts`:
10+
11+
```ts
12+
import netlify from '@netlify/vite-plugin-tanstack-start'
13+
14+
export default defineConfig({
15+
plugins: [
16+
// ... your existing plugins
17+
netlify(),
18+
],
19+
})
1120
```
21+
22+
A `netlify.toml` file has been automatically created for you with the correct build settings.
23+
24+
That's it. You can now deploy your app [from Netlify UI](https://docs.netlify.com/start/add-new-project/#import-from-an-existing-repository) or with the [Netlify CLI](https://docs.netlify.com/api-and-cli-guides/cli-guides/get-started-with-cli/#manual-deploys).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
command = "vite build"
3+
dir = "dist/client"
4+
[dev]
5+
command = "vite dev"
6+
port = 3000

0 commit comments

Comments
 (0)