Skip to content

Commit 3493cc8

Browse files
asrvdtony19sapphi-red
authored
docs: add git option for netlify deployment (#9526)
Co-authored-by: Tony Trinh <[email protected]> Co-authored-by: 翠 / green <[email protected]>
1 parent e53f5d4 commit 3493cc8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

guide/static-deploy.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ You can also run the above script in your CI setup to enable automatic deploymen
131131
132132
## Netlify
133133
134+
### Netlify CLI
135+
134136
1. Install the [Netlify CLI](https://cli.netlify.com/).
135137
2. Create a new site using `ntl init`.
136138
3. Deploy using `ntl deploy`.
@@ -153,6 +155,16 @@ The Netlify CLI will share with you a preview URL to inspect. When you are ready
153155
$ ntl deploy --prod
154156
```
155157

158+
### Netlify with Git
159+
160+
1. Push your code to a git repository (GitHub, GitLab, BitBucket, Azure DevOps).
161+
2. [Import the project](https://app.netlify.com/start) to Netlify.
162+
3. Choose the branch, output directory, and set up environment variables if applicable.
163+
4. Click on **Deploy**.
164+
5. Your Vite app is deployed!
165+
166+
After your project has been imported and deployed, all subsequent pushes to branches other than the production branch along with pull requests will generate [Preview Deployments](https://docs.netlify.com/site-deploys/deploy-previews/), and all changes made to the Production Branch (commonly “main”) will result in a [Production Deployment](https://docs.netlify.com/site-deploys/overview/#definitions).
167+
156168
## Vercel
157169

158170
### Vercel CLI

0 commit comments

Comments
 (0)