500 error creating API route
Trying to create my first API route.
1. I added
as noted here: https://tanstack.com/start/latest/docs/framework/react/api-routes#setting-up-the-entry-handler
2. ) I added
3. Then I restarted the dev server (a bunch of times) using
500 error
Suggestions?
Versions:
1. I added
/app/api.ts as noted here: https://tanstack.com/start/latest/docs/framework/react/api-routes#setting-up-the-entry-handler
2. ) I added
/app/api/hello.ts with the example code:3. Then I restarted the dev server (a bunch of times) using
"dev": "vinxi dev" as my package.json script.500 error
Suggestions?
Versions:
API Routes are a powerful feature of TanStack Start that allow you to create server-side endpoints in your application without the need for a separate server. API Routes are useful for handling form s...
