Deployment to static hosting
📖 Scenario: You have built a simple Vue app and want to share it with friends by putting it on a static hosting service like GitHub Pages or Netlify.This project will guide you through preparing your Vue app for deployment and configuring it for static hosting.
🎯 Goal: Prepare a Vue 3 app for static hosting by setting the correct base URL, building the app, and adding a deployment configuration file.
📋 What You'll Learn
Create a Vue 3 app with a basic
App.vue componentSet the
base option in vite.config.js for static hostingBuild the app using the Vue CLI or Vite build command
Add a
netlify.toml file to configure Netlify deployment💡 Why This Matters
🌍 Real World
Deploying Vue apps to static hosting services is common for personal projects, portfolios, and small business websites.
💼 Career
Understanding deployment prepares you for real-world frontend roles where you must publish apps for users to access.
Progress0 / 4 steps