How to Publish
Publishing & Deployment · 3 articles
Does publishing expose my project and code?
No. Publishing only makes your website public at a URL. Your Lovable project remains private—only invited collaborators can access it. Your code is protected unless you explicitly sync to GitHub or download it. API keys and secrets are never included in exports. Keep sensitive keys in Cloud → Secrets or Supabase Edge Function secrets.
Example: Manual Docker deployment
Export code from GitHub, create a Dockerfile (multi-stage: build React app, serve with lightweight server). Build the image locally with `docker build`, test with `docker run`, then push to Docker Hub or a private registry. Deploy to your server (VPS, Kubernetes, etc.) by pulling and running the image. This gives you full control over the runtime environment.
How to publish a Lovable app to the App Store
Lovable publishes to the web (via Lovable subdomains or custom domains), not natively to the App Store. To get your Lovable app on the App Store, export the code and wrap it with a tool like Median.co or Capacitor to turn it into a native iOS app, then submit to the App Store following Apple's guidelines.