N
Nuxt5mo ago
bnason

Server non api route with params taking over root route

I have a file ./server/routes/[id].ts that I want to handle and do a redirect based on the id parameter. However, it seems to be taking over the root route of the server completely so if I curl http://localhost:3000/ it is loading that route when it shouldd only be called for http://localhost:3000/xxxx
1 Reply
bnason
bnasonOP4mo ago
Even moving the file to ./server/routes/[id]/index.ts doesn't help. Is there any way to set priority for server routes?
Want results from more Discord servers?
Add your server