# Install Vercel CLI
npm install -g vercel
# Deploy
vercel
# Follow the prompts to connect your project# Build the project
npm run build
# Drag and drop the 'dist' folder to Netlify's deploy interface
# Or use Netlify CLI:
npm install -g netlify-cli
netlify deploy --prod --dir=dist# Install gh-pages
npm install --save-dev gh-pages
# Add to package.json scripts:
"deploy": "gh-pages -d dist"
# Build and deploy
npm run build
npm run deploy# Build the project
npm run build
# Upload the contents of the 'dist' folder to your web serverNo environment variables are required for basic deployment.
# Install bundle analyzer
npm install --save-dev vite-bundle-analyzer
# Add to package.json scripts:
"analyze": "vite-bundle-analyzer"
# Run analysis
npm run analyze- Monaco Editor is loaded asynchronously
- Tailwind CSS is purged of unused styles
- Assets are automatically minified by Vite
Update the base in vite.config.js if deploying to a subdirectory:
export default defineConfig({
base: '/your-subdirectory/',
plugins: [react()],
})