DEV Community

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

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

2 2

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay