Skip to content

Commit ebdcac3

Browse files
docs: add Render deployment guide (#4217)
* docs: add Render deployment guide * Update docs/guide/deployment.md Co-Authored-By: Natalia Tepluhina <[email protected]>
1 parent 2d63503 commit ebdcac3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/guide/deployment.md

+22
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,28 @@ In order to receive direct hits using `history mode` on Vue Router, you need to
142142
143143
More information on [Netlify redirects documentation](https://www.netlify.com/docs/redirects/#history-pushstate-and-single-page-apps).
144144
145+
### Render
146+
147+
[Render](https://render.com) offers [free static site hosting](https://render.com/docs/static-sites) with fully managed SSL, a global CDN and continuous auto deploys from GitHub.
148+
149+
1. Create a new Web Service on Render, and give Render’s GitHub app permission to access your Vue repo.
150+
151+
2. Use the following values during creation:
152+
153+
- **Environment:** `Static Site`
154+
- **Build Command:** `npm run build` or `yarn build`
155+
- **Publish directory:** `dist`
156+
157+
That’s it! Your app will be live on your Render URL as soon as the build finishes.
158+
159+
In order to receive direct hits using history mode on Vue Router, you need to add the following rewrite rule in the `Redirects/Rewrites` tab for your site.
160+
161+
- **Source:** `/*`
162+
- **Destination:** `/index.html`
163+
- **Status** `Rewrite`
164+
165+
Learn more about setting up [redirects, rewrites](https://render.com/docs/redirects-rewrites) and [custom domains](https://render.com/docs/custom-domains) on Render.
166+
145167
### Amazon S3
146168
147169
See [vue-cli-plugin-s3-deploy](https://github.com/multiplegeorges/vue-cli-plugin-s3-deploy).

0 commit comments

Comments
 (0)