Skip to content

Commit f263a7d

Browse files
authored
docs: fixed some minor typos (#6493)
1 parent 82075ce commit f263a7d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/guide/deployment.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ serve -s dist
2121

2222
If you are using Vue Router in `history` mode, a simple static file server will fail. For example, if you used Vue Router with a route for `/todos/42`, the dev server has been configured to respond to `localhost:3000/todos/42` properly, but a simple static server serving a production build will respond with a 404 instead.
2323

24-
To fix that, you will need to configure your production server to fallback to `index.html` for any requests that do not match a static file. The Vue Router docs provides [configuration instructions for common server setups](https://router.vuejs.org/guide/essentials/history-mode.html).
24+
To fix that, you will need to configure your production server to fallback to `index.html` for any requests that do not match a static file. The Vue Router docs provide [configuration instructions for common server setups](https://router.vuejs.org/guide/essentials/history-mode.html).
2525

2626
### CORS
2727

@@ -44,7 +44,7 @@ If you are using the PWA plugin, your app must be served over HTTPS so that [Ser
4444
If you are deploying to `https://<USERNAME>.github.io/<REPO>/`, (i.e. your repository is at `https://github.com/<USERNAME>/<REPO>`), set `publicPath` to `"/<REPO>/"`. For example, if your repo name is "my-project", your `vue.config.js` should look like this:
4545

4646
``` js
47-
// vue.config.js file to be place in the root of your repository
47+
// vue.config.js file to be placed in the root of your repository
4848

4949
module.exports = {
5050
publicPath: process.env.NODE_ENV === 'production'
@@ -171,7 +171,7 @@ Also checkout [vue-cli-plugin-netlify-lambda](https://github.com/netlify/vue-cli
171171
172172
#### Use history mode on Vue Router
173173
174-
In order to receive direct hits using `history mode` on Vue Router, you need to redirect all trafic to the `/index.html` file.
174+
In order to receive direct hits using `history mode` on Vue Router, you need to redirect all traffic to the `/index.html` file.
175175
176176
> More information on [Netlify redirects documentation](https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps).
177177
@@ -317,7 +317,7 @@ If you want to use a Custom Domain with your Vercel deployment, you can **Add**
317317

318318
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.
319319

320-
Once the domain as been added, you will be presented with different methods for configuring it.
320+
Once the domain has been added, you will be presented with different methods for configuring it.
321321

322322
#### Deploying a fresh Vue project
323323

@@ -372,7 +372,7 @@ More info: [Getting started with SPAs on Heroku](https://gist.github.com/hone/24
372372

373373
To deploy with [Surge](http://surge.sh/) the steps are very straightforward.
374374

375-
First you would need to build your project by running `npm run build`. And if you haven't installed Surge's command line tool, you can simply do so by running the command:
375+
First, you would need to build your project by running `npm run build`. And if you haven't installed Surge's command line tool, you can simply do so by running the command:
376376

377377
```bash
378378
npm install --global surge
@@ -396,11 +396,11 @@ Verify your project is successfully published by Surge by visiting `myawesomepro
396396
397397
1. As described in the [Bitbucket documentation](https://confluence.atlassian.com/bitbucket/publishing-a-website-on-bitbucket-cloud-221449776.html) you need to create a repository named exactly `<USERNAME>.bitbucket.io`.
398398
399-
2. It is possible to publish to a subfolder of the main repository, for instance if you want to have multiple websites. In that case set correct `publicPath` in `vue.config.js`.
399+
2. It is possible to publish to a subfolder of the main repository, for instance if you want to have multiple websites. In that case, set correct `publicPath` in `vue.config.js`.
400400
401401
If you are deploying to `https://<USERNAME>.bitbucket.io/`, you can omit `publicPath` as it defaults to `"/"`.
402402
403-
If you are deploying to `https://<USERNAME>.bitbucket.io/<SUBFOLDER>/`, set `publicPath` to `"/<SUBFOLDER>/"`. In this case the directory structure of the repository should reflect the url structure, for instance the repository should have a `/<SUBFOLDER>` directory.
403+
If you are deploying to `https://<USERNAME>.bitbucket.io/<SUBFOLDER>/`, set `publicPath` to `"/<SUBFOLDER>/"`. In this case, the directory structure of the repository should reflect the url structure, for instance, the repository should have a `/<SUBFOLDER>` directory.
404404
405405
3. Inside your project, create `deploy.sh` with the following content and run it to deploy:
406406

0 commit comments

Comments
 (0)