Deployment Guide
How to deploy the Ingglish website, Chrome extension, and CORS proxy.
Website Deployment
GitHub Pages (Current)
The site is deployed automatically via GitHub Actions on every push to main.
Enable GitHub Pages
- Go to repository Settings > Pages
- Select "GitHub Actions" as the source
Workflow See .github/workflows/pages.yml for the full workflow.
Environment Variables
BASE_URL- Set to/<repo-name>/for GitHub Pages subpathVITE_CORS_PROXY_URL- URL to your CORS proxy for the URL translator feature
Chrome Extension Deployment
Building
npm run build -w @ingglish/extension
The built extension will be in packages/extension/dist/.
Loading in Chrome
- Go to
chrome://extensions - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select
packages/extension/dist
Usage
- Click the Ingglish extension icon in the Chrome toolbar
- Click "Translate Page" to translate the current page
- Click "Turn Off" to restore the original text
- Use the format toggle to switch between Ingglish and IPA
Keyboard Shortcuts:
- Windows/Linux:
Alt+Shift+G - Mac:
Ctrl+Shift+G
Features
- Format switching - Toggle between Ingglish and IPA output
- In-place updates - Format switching updates existing translations without re-rendering
- Dynamic content - Automatically translates content added via JavaScript (SPAs, infinite scroll)
- Hover tooltips - See original English by hovering over translated words
Notes
- Translation state persists within a tab across page refreshes
- Some pages block content scripts (e.g., Chrome Web Store)
- Code blocks, form inputs, and scripts are not translated
Chrome Web Store Publishing
Prepare Assets
- Create icon images (16x16, 48x48, 128x128 PNG)
- Take screenshots (1280x800 or 640x400)
- Write store description
Create ZIP
cd packages/extension/dist zip -r ../ingglish-extension.zip .Submit to Chrome Web Store
- Go to Chrome Developer Dashboard
- Pay one-time $5 developer fee
- Upload ZIP file
- Fill in store listing details
- Submit for review
Extension CI/CD
The extension is automatically built and packaged in .github/workflows/pages.yml.
CORS Proxy Deployment
The URL translator feature requires a CORS proxy to fetch external websites. You can use the included Cloudflare Worker.
Automatic Deployment
The CORS proxy is automatically deployed via .github/workflows/deploy-cors-proxy.yml when changes are pushed to packages/cors-proxy/.
Requires CLOUDFLARE_API_TOKEN secret in repository settings.
Manual Deployment
Install Wrangler CLI
npm install -g wrangler wrangler loginConfigure your worker Edit packages/cors-proxy/wrangler.toml to set
ALLOWED_ORIGINS.Deploy
cd packages/cors-proxy wrangler deployUpdate website environment Set
VITE_CORS_PROXY_URLto your worker URL.
Using Custom Proxy
Alternatively, use any CORS proxy that supports the ?url= parameter format.
Environment Variables
Website
No environment variables required for basic deployment.
For URL Translation Feature
If you want to use your own CORS proxy instead of allorigins.win:
VITE_CORS_PROXY_URL- Your CORS proxy URL (e.g.,https://your-proxy.workers.dev/?url=)
Troubleshooting
See Troubleshooting Guide for common deployment issues.