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]; More after jump! From complex mega-dropdowns to carousels and filters. Online, and live.
Let's personalize your content