Wildcard domains unlock the ability to build platforms that scale. With zero-configuration, you're able to provide your customers with a personalized space on your host domain. If you haven't already read our blog post, then start there. This project is a fun and simple demonstration of wildcard domains where you are able to claim a page under any subdomain if its available and retain edit rights via a unique session identifier. Please feel free to raise issues, and send PRs where you may have questions or feel like bits of code can be improved!
- FaunaDB: high-performance, low-latency, and serverless persistence of page data, and session identifiers
- Twilio Sendgrid: dead simple programmatic email service for sending unique session links
- Pusher Channels: globally distributed and managed WebSocket infrastructure for broadcasting real-time updates when saving pages
We recently launched the Platforms Starter Kit that's a comprehensive template for building multi-tenant applications with built-in custom domains support:
- Read the announcement: https://demo.vercel.pub/platforms-starter-kit
- Check out the guide: https://vercel.com/guides/nextjs-multi-tenant-application
- Try out the repo: https://github.com/vercel/platforms