-
Notifications
You must be signed in to change notification settings - Fork 56
rust api in nextjs app? #69
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
Comments
I also encountered this issue. I tested a non-nextjs app and ran it with |
Hey we released a new runtime in #80 which now also provides examples to integrate with Next.js. Happy about every feedback. |
Just did a quick smoke test. Much better, good job, thanks!
… On Mar 13, 2023, at 04:09, ecklf ***@***.***> wrote:
Hey we released a new runtime in #80 <#80> which now also provides examples to integrate with Next.js. Happy about every feedback.
—
Reply to this email directly, view it on GitHub <#69 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJ4NZ2MGAESGQSG4A5JGRTW3356ZANCNFSM54QDVZ7A>.
You are receiving this because you commented.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all, is there any normal way to have rust api within nextjs app?
In nextjs all the APIs are supposed to be in /pages/api/
If I try to add
/api
alongside with/pages/api
/api
- works, but/pages/api
doesn'tIf I try to place rust code in
/pages/api
and in vercel.json set:it doesn't work, rs file is not compiling.
If I try to move everything under /api from /pages/api - multiple issues with webpack/fetch/next-XXX plugins appear.
Maybe there is some more vercel or nextjs configs I can use?
Or wasm is only option in my case? (except creating separate API project only for Rust)
The text was updated successfully, but these errors were encountered: