Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Add routes at runtime - Nuxt
N
Nuxt
•
2y ago
•
1 reply
tresko32
Add routes at runtime
Is it possible to add new routes at the runtime asynchronously
?
Before
˙
˙v3
.12
.1
˙
˙ I added them in the plugin with
useRouter().addRoute(route)
useRouter().addRoute(route)
, but now it doesn
't work anymore
. I always get 404 because routes are inserted too late and routes are not matched
.
Nuxt
Join
Nuxt Community Chat Server
31,787
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Dynamically add routes in runtime based on pinia store value
N
Nuxt / ❓・help
15mo ago
Nuxt Content: defineCollection at runtime
N
Nuxt / ❓・help
4w ago
Running code at runtime only
N
Nuxt / ❓・help
10mo ago
Dynamically added route at runtime
N
Nuxt / ❓・help
4y ago