Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to reroute a request to a different template: GET /hello -> render(/foo/hello.vue) - Nuxt
N
Nuxt
•
13mo ago
•
5 replies
Michael
How to reroute a request to a different template: GET /hello -> render(/foo/hello.vue)
Hi
, when a request comes into the server
, I want to check the hostname and decide which page to render
.
How can I do that
? I
've looked at nuxt
-multi
-tenant module and it
's possible
, but that module uses dynamic routes
. I have static routes
.
Seems like this should be an easy win
, but when I try to modify event
.page in defineEventHandler
(
) it
's read
-only
.
Howto
? Thanks
!
Nuxt
Join
Nuxt Community Chat Server
31,665
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to dynamically render a different page for a request. /pages/some/thing.vue or other/thing.vue
N
Nuxt / ❓・help
13mo ago
Render a vue template completely on a server route (and get the string from it)
N
Nuxt / ❓・help
4y ago
How to middleware handling request for /some/page.vue return render for other/page.vue
N
Nuxt / ❓・help
13mo ago
[Vue warn]: Component <Anonymous> is missing template or render function.
N
Nuxt / ❓・help
10mo ago