How do I use a non-standard API route prefix in TS Start? #4060
Unanswered
icflorescu
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You need to change the api routes path too, see this issue |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation says:
By default, API Routes are defined in your ./app/routes/api directory of your project and are automatically handled by the TanStack Start server.
However, I am unable to make this work.
Assuming I'd like my API URLs to start with
/r/
instead of/api/
, I'm trying thisapp.config.ts
:But my routes are still available at
/api/
and unavailable at/r/
.What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions