Skip to content

Latest commit

History

History
69 lines (58 loc) 路 1.27 KB

File metadata and controls

69 lines (58 loc) 路 1.27 KB

Deployment Guide

Quick Deploy Options

1. Vercel (Recommended - Easiest)

npm install -g vercel
vercel

Follow the prompts. Your app will be live in ~60 seconds!

2. Netlify

npm install -g netlify-cli
npm run build
netlify deploy --prod --dir=dist

3. GitHub Pages

# Add to vite.config.ts:
# base: '/ByteLearn/'

npm run build
npx gh-pages -d dist

4. Docker

FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "preview"]
docker build -t bytelearn .
docker run -p 3000:3000 bytelearn

Environment Variables (Future)

VITE_API_URL=https://api.bytelearn.com
VITE_AI_API_KEY=your_openai_key_here
VITE_ANALYTICS_ID=your_analytics_id

Production Checklist

  • Update meta tags in index.html
  • Add Google Analytics / Plausible
  • Configure CDN for assets
  • Enable HTTPS
  • Set up error tracking (Sentry)
  • Configure rate limiting
  • Add SEO optimizations
  • Set up monitoring/alerts

Performance Tips

  • Images are served from CDN
  • Vite automatically code-splits
  • CSS is minified and purged
  • Tree-shaking removes unused code
  • Modern build targets ES2020+

Your app is production-ready! 馃殌