Skip to content

Commit e8ffe0e

Browse files
authored
docs: add Render deployment instructions (#9517)
1 parent 3493cc8 commit e8ffe0e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

guide/static-deploy.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,26 @@ Install the extension in VS Code and navigate to your app root. Open the Static
343343
Follow the wizard started by the extension to give your app a name, choose a framework preset, and designate the app root (usually `/`) and built file location `/dist`. The wizard will run and will create a GitHub action in your repo in a `.github` folder.
344344

345345
The action will work to deploy your app (watch its progress in your repo's Actions tab) and, when successfully completed, you can view your app in the address provided in the extension's progress window by clicking the 'Browse Website' button that appears when the GitHub action has run.
346+
347+
## Render
348+
349+
You can deploy your Vite app as a Static Site on [Render](https://render.com/).
350+
351+
1. Create a [Render account](https://dashboard.render.com/register).
352+
353+
2. In the [Dashboard](https://dashboard.render.com/), click the **New** button and select **Static Site**.
354+
355+
3. Connect your GitHub/GitLab account or use a public repository.
356+
357+
4. Specify a project name and branch.
358+
359+
- **Build Command**: `npm run build`
360+
- **Publish Directory**: `dist`
361+
362+
5. Click **Create Static Site**.
363+
364+
Your app should be deployed at `https://<PROJECTNAME>.onrender.com/`.
365+
366+
By default, any new commit pushed to the specified branch will automatically trigger a new deploy. [Auto-Deploy](https://render.com/docs/deploys#toggling-auto-deploy-for-a-service) can be configured in the project settings.
367+
368+
You can also add a [custom domain](https://render.com/docs/custom-domains) to your project.

0 commit comments

Comments
 (0)