Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use with @tanstack/react-router #54

Closed
dohomi opened this issue Feb 28, 2024 · 2 comments
Closed

how to use with @tanstack/react-router #54

dohomi opened this issue Feb 28, 2024 · 2 comments

Comments

@dohomi
Copy link

dohomi commented Feb 28, 2024

I tried to enable this plugin wichin my tanstack router project. But any /api/* route still responses with 404 error from tanstack router. I used vite-plugin-vercel-api plugin where it seems to work. Any idea how this could be archived?

@magne4000
Copy link
Owner

This project main goal is to implement features of the Build Output API (v3).

vite-plugin-vercel currently does not currently support /api endpoint in developement, only for build process.
I think that it should work in concert with vite-plugin-vercel-api though.

Also, I'm not familiar with @tanstack/react-router, and it could require a deeper integration even for the build process. vite-plugin-vercel gives you somes helpers and guidelines in order to build your own implementation on top of it (in this case on top of @tanstack/react-router). Vike integration can be taken as a complete example of how to do that.

@dohomi
Copy link
Author

dohomi commented Feb 29, 2024

OK cool, thanks for your reply. Will close this issue as I found a way around to simply use transpiled /api folder.

@dohomi dohomi closed this as completed Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants