DEV Community

Cover image for Subdomain routing with nuxtJS and k-domains module
Krypton | Madhusudan Babar
Krypton | Madhusudan Babar

Posted on • Updated on • Originally published at madhusudan.live

Subdomain routing with nuxtJS and k-domains module

Hello guys, few days ago i was trying to manage subdomains for my site where i wanted to have same layout across all and without repetition of the code.

i tried all possible ways from creating own routes to modifying default routes and after a lot of efforts, i finally achieved the result i wanted but i noticed many posts, feature requests on github for the same, so i ended up creating my very first npm module, Here's the link to the article elaborating the use of the module.

Here's the source code
And here's the package 📦
You are welcome for feedbacks / suggestions

Top comments (0)