vite · Vite Docs
Deploying a Static Site | Vite (main branch)
Explains the process of building a Vite project for production and deploying the resulting static files to various hosting providers.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Deploying a Static Site | Vite (main branch)
Explains the process of building a Vite project for production and deploying the resulting static files to various hosting providers.
When To Use
Use when you need to build a Vite project for production and deploy the static assets to a web server or hosting service.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/main-vite-deploying-a-static-site-branch-workflow-guide.md | A guide detailing how to build, test locally, and deploy static sites using GitHub Pages and GitLab Pages with Vite. | Questions about a guide detailing how to build, test locally, and deploy static sites using GitHub Pages and GitLab Pages with Vite. |
examples/main-vite-deploying-a-static-site-branch-vite-static-site-deployment-pac.text | A package.json configuration file demonstrating the build and preview scripts required for deploying a static site with Vite. | Exact payloads, commands, or snippets shown in A package.json configuration file demonstrating the build and preview scripts required for deploying a static site wi... |
examples/main-vite-deploying-a-static-site-branch-vite-static-site-deploy-build-c.text | The shell command used to build a static site for deployment in Vite. | Exact payloads, commands, or snippets shown in The shell command used to build a static site for deployment in Vite. |
examples/main-vite-deploying-a-static-site-branch-vite-static-deploy-preview-comm.text | The shell command used to preview a built static site locally using npm. | Exact payloads, commands, or snippets shown in The shell command used to preview a built static site locally using npm. |
examples/main-vite-deploying-a-static-site-branch-vite-static-site-deployment-pac-2.text | A package.json configuration file demonstrating the preview script setup for deploying a static site with Vite. | Exact payloads, commands, or snippets shown in A package.json configuration file demonstrating the preview script setup for deploying a static site with Vite. |
examples/main-vite-deploying-a-static-site-branch-vite-github-pages-deployment-wo.text | A GitHub Actions workflow configuration for deploying static content to GitHub Pages. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration for deploying static content to GitHub Pages. |
examples/main-vite-deploying-a-static-site-branch-vite-static-deploy-github-actio.text | A GitHub Actions YAML configuration for deploying a static site using Node.js, npm install, and build commands. | Exact payloads, commands, or snippets shown in A GitHub Actions YAML configuration for deploying a static site using Node.js, npm install, and build commands. |
examples/main-vite-deploying-a-static-site-branch-vite-cloudflare-plugin-install-.text | The shell command to install the Cloudflare Vite plugin as a development dependency. | Exact payloads, commands, or snippets shown in The shell command to install the Cloudflare Vite plugin as a development dependency. |
examples/main-vite-deploying-a-static-site-branch-vite-static-deploy-cloudflare-p.text | A vite configuration file demonstrating the use of the Cloudflare plugin for deploying a static site. | Exact payloads, commands, or snippets shown in A vite configuration file demonstrating the use of the Cloudflare plugin for deploying a static site. |
examples/main-vite-deploying-a-static-site-branch-vite-static-deploy-package-json.text | A package.json configuration example demonstrating the setup for deploying a static site using Vite. | Exact payloads, commands, or snippets shown in A package.json configuration example demonstrating the setup for deploying a static site using Vite. |
examples/main-vite-deploying-a-static-site-branch-vite-static-site-deployment-con.text | A configuration object defining hosting settings, public directory, and rewrite rules for deploying a static site. | Exact payloads, commands, or snippets shown in A configuration object defining hosting settings, public directory, and rewrite rules for deploying a static site. |
examples/main-vite-deploying-a-static-site-branch-vite-static-deploy-configuratio.text | A configuration example for deploying a static site using Vite. | Exact payloads, commands, or snippets shown in A configuration example for deploying a static site using Vite. |
What This Skill Covers
- Are you an LLM? You can read better optimized documentation at /guide/static-deploy.md for this page in Markdown format
- Main sections:
Building the App ,Testing the App Locally ,GitHub Pages ,GitLab Pages and GitLab CI ,Netlify .
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://main.vite.dev/guide/static-deploy