You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/deployment.md
+21-60
Original file line number
Diff line number
Diff line change
@@ -284,77 +284,38 @@ Please refer to the [Firebase Documentation](https://firebase.google.com/docs/ho
284
284
285
285
### Vercel
286
286
287
-
This example uses the latest Vercel platform version 2.
287
+
[Vercel](https://vercel.com/home) is a cloud platform that enables developers to host Jamstack websites and web services that deploy instantly, scale automatically, and requires no supervision, all with zero configuration. They provide a global edge network, SSL encryption, asset compression, cache invalidation, and more.
288
288
289
-
1. Install the Vercel CLI:
289
+
#### Step 1: Deploying your Vue project to Vercel
290
290
291
-
```bash
292
-
npm install -g vercel
291
+
To deploy your Vue project with a [Vercel for Git Integration](https://vercel.com/docs/git-integrations), make sure it has been pushed to a Git repository.
293
292
294
-
# Or, if you prefer a local one
295
-
npm install vercel
296
-
```
293
+
Import the project into Vercel using the [Import Flow](https://vercel.com/import/git). During the import, you will find all relevant [options](https://vercel.com/docs/build-step#build-&-development-settings) preconfigured for you with the ability to change as needed.
297
294
298
-
2. Add a `vercel.json` file to your project root:
295
+
After your project has been imported, all subsequent pushes to branches will generate [Preview Deployments](https://vercel.com/docs/platform/deployments#preview), and all changes made to the [Production Branch](https://vercel.com/docs/git-integrations#production-branch) (commonly "master" or "main") will result in a [Production Deployment](https://vercel.com/docs/platform/deployments#production).
If your `outputDir` is not the default `dist`, say `build`:
336
-
337
-
```diff
338
-
- {
339
-
- "src": "package.json",
340
-
- "use": "@vercel/static-build"
341
-
- }
342
-
+ {
343
-
+ "src": "package.json",
344
-
+ "use": "@vercel/static-build",
345
-
+ "config": { "distDir": "build" }
346
-
+ }
347
-
```
301
+
If you want to use a Custom Domain with your Vercel deployment, you can **Add** or **Transfer in** your domain via your Vercel [account Domain settings.](https://vercel.com/dashboard/domains)
348
302
349
-
3. Adding a `now-build` script in`package.json`:
303
+
To add your domain to your project, navigate to your [Project](https://vercel.com/docs/platform/projects) from the Vercel Dashboard. Once you have selected your project, click on the "Settings" tab, then select the **Domains** menu item. From your projects **Domain** page, enter the domain you wish to add to your project.
350
304
351
-
```json
352
-
"vercel-build": "npm run build"
353
-
```
305
+
Once the domain as been added, you will be presented with different methods for configuring it.
306
+
307
+
#### Deploying a fresh Vue project
308
+
309
+
You can deploy a fresh Vue project, with a Git repository set up for you, with the following Deploy Button:
310
+
311
+
[](https://vercel.com/import/git?s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmaster%2Fexamples%2Fvue)
354
312
355
-
To make a deployment, run `vercel`.
313
+
## References:
356
314
357
-
If you want your deployment aliased, run `vercel --target production` instead.
0 commit comments