Use .nodev domains for OAuth-friendly local development.
.nodev is a special top-level domain that works only on your local machine. Each project can have its own domain like:
• myshop.nodev
• dashboard.nodev
• api.nodev
OAuth providers like Google and GitHub require registered redirect URLs. With .nodev domains, you can use stable URLs like http://myapp.nodev/auth/callback instead of http://localhost:3000/auth/callback.
Both 127.0.0.1 and localhost point to your .nodev domain. This means consistent origins for APIs and no more CORS headaches.
No more remembering which port is which. Your projects have names, not random port numbers.
Local development feels more like production with proper domain names instead of localhost.
myapp)http://myapp.nodevNodev configures your Mac to resolve .nodev domains locally:
Planned enhancements for .nodev domains:
• SSL/HTTPS support via local certificates
• Wildcard subdomains (*.nodev)
• Custom TLD support
• Integration with Caddy for advanced routing