We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Screencast
8. Subdomain Routing
Subdomain Routing
Unlock the full screencast for free.
Register to get the Starter Kit, every episode, and weekly deep dives.
A common feature in larger web applications, especially SaaS platforms, is the ability to handle different subdomains with separate routing.
In this video, I’ll show you how to add a custom routing module to a Phoenix application, to display my blog posts on a dedicated subdomain.
I am usually using this approach to serve different content, like a blog or user dashboard, with distinct subdomains, with the purpose to keep my main application structure clean and organized.