-
Notifications
You must be signed in to change notification settings - Fork 60
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
Server "Api" routes missing #339
Comments
Where do you deploy your project and with what command? |
|
Trying some hacking but feels dirty, can I keep the (dynamic) server routes, server rendered on nuxt hub?
routeRules: {
|
Thank you so much for taking the time to debug! I know you're a busy guy (we met at a meetup before dotjs in an opera house I think / Paris) I think I need to rephrase my question, does NuxtHub support the node + |
NuxtHub support hybrid rendering by default, no need to set |
I don't remember well but I do hope we will meet again :) |
Re-opening as the issue might be related to Prisma |
I think you are correct it's a prisma issue. Cannot run exec or something. Prisma is so finicky. |
Haven't tested but wondering is it because I'm using SQLite with a local file, maybe there is a permissions issue. cc @oritwoen are you using drizzle with sqlite or remote (real) db? |
Real database from Cloudflare using remote @jswhisperer On dev, i.e. nitro node preset, it works perfectly. With |
Super happy to test, I thought |
Happy to close, could you specify how to change the presets... I didn't edit anything and it ran cloudflar-pages as a preset. My solution utimateley was to remove nuxt-hub and deploy elsewhere but not ideal obviously! :) Article https://dev.to/jswhisperer/i-will-refuse-live-coding-interviews-from-now-on-3mfh |
Describe the bug
Server "Api" routes missing
https://nuxt-app-gregpalaci.nuxt.dev/ all good
https://nuxt-app-gregpalaci.nuxt.dev/api/books MIA
codebase https://github.com/gregpalaci/nuxty-book
MIA (https://github.com/gregpalaci/nuxty-book/blob/main/server/api/book/%5Bisbn%5D.ts)
Expected behavior
API exists
The text was updated successfully, but these errors were encountered: