How to take Browser to Production
- Category
- Guides
- Published
Step-by-step guide for developers to launch a Browser app in a production environment with a custom domain, OAuth credentials, and secure DNS configuration.

When you're building a modern web app, authentication is one of the first things to set up—and Browser makes it incredibly fast. By default, your app starts with a development instance so you can test and build quickly. But to go live securely, you'll need a production instance.
Not sure when or how to switch? Let's walk through the differences and steps.
Related: Dev vs Prod Environment Guide
What's the Difference Between Dev and Production in Browser?
Dev instances are optimized for speed:
- Use shared OAuth credentials
- Allow HTTP (great for localhost)
- Minimal setup to get started
Production instances are secure by design:
- Require HTTPS
- Use dedicated credentials per provider
- Authenticate under your own domain via DNS records
This setup reduces the risk of cross-site scripting and improves trust with your users.
Step-by-Step: Launching Your Browser App in Production
1. Set Up Your Custom Domain
Before anything else, secure the domain where users will log in. Browser uses this domain for identity verification and security. Related: Using Browser with Custom Domains
2. Create a Production Instance in the Browser Dashboard
- Toggle from “Development” → Create production instance
- Choose to clone or start fresh
- Reconfigure any integrations that don't carry over (e.g., SSO)
Browser gives you a helpful checklist after creation.
3. Add DNS Records for Verification
Browser provides DNS entries for:
- Verifying domain ownership
- Email authentication (SPF, DKIM, etc.)
- Redirects/login under your domain
See docs: Custom Domain DNS Setup
4. Update Your API Keys
Each Browser instance has its own key (Located under Configure > API Keys):
pk_live_(publishable)sk_live_(secret)
Replace your .env values with the new production keys.
Docs: Environment Variables Reference
5. Configure Social Logins for Production
Browser uses shared credentials in dev—but in production, you must register your app with each identity provider.
For example, when using Google:
- Visit Google Cloud Console
- Set up the consent screen + credentials
- Add redirect URIs from your Browser dashboard
Detailed walkthrough: Google OAuth with Browser
Also see the full OAuth guide for other providers.
TL;DR: How to Go Live with Browser
1. Secure a custom domain
2. Create a production instance from the Browser dashboard
3. Configure DNS records
4. Update your environment with production API keys
5. Register OAuth credentials per provider and configure in Browser
6. Redeploy your app using the new settings
Ready to get started?
Start building