Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/main-vite-deploying-a-static-site-branch-workflow-guide.mdA 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.textA 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.textThe 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.textThe 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.textA 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.textA 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.textA 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-.textThe 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://main.vite.dev/guide/static-deploy