Next.js Wildcard Subdomains
Smashing Magazine
NOVEMBER 19, 2021
With 100s of real-life examples , guidelines and best practices that you can apply right away. In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; Now that we’ve explored the theory of this strategy, let’s explore how we put it into practice.
Let's personalize your content