-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
index
api route logs not shown in Zeit, works differently in dev vs prod
#11542
Comments
here i recorded a video bug report |
Hey! I had a look into this. It seems that you are trying to fetch We'll have a look at fixing the inconsistency. |
That's interesting, that will also impact the description in #10488 (comment). It would change the behavior of the second table in that comment into something a bit more consistent 👍 |
gotcha. of course i did not start out trying to fetch update.. looks like it "just works". not sure why i felt like it didnt work the first time i tried it for what its worth, i think the docs could be clearer on how dynamic api routes can coexist with "blank routes" - this is a very common RESTful pattern:
how are we supposed to model this very common api route structure with dynamic api routes? the docs basically leave it up to the reader to guess.
i'm sure one of these will work but its not clear which. i actually livestreamed my confusion playing with these options and looking at the docs, which would be good ux research, but unfortunately google lost the entire stream :( |
Option 1 and 2 both work. Dynamic routes do not have an Would be happy to take in PRs to clear that up 👍 |
document how root routes coexist with dynamic api routes - related to vercel#11542
* document how root routes coexist with dynamic api routes document how root routes coexist with dynamic api routes - related to #11542 * Update dynamic-api-routes.md * Update dynamic-api-routes.md * Run prettier Co-authored-by: Tim Neutkens <[email protected]>
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
index
api route not rendered in Zeit, works differently in dev vs prodDescribe the bug
In this code i have a dynamic api route and a custom one:
In dev, this works fine:
but in prod, this happens:
It's because the api is somehow behaving differently in dev vs in prod. I should dig in further, but first I need the api route/serverless function to log its state to me
However in Zeit it doesn't show accordingly:
To Reproduce
https://github.com/sw-yx/dev-to-cms/tree/fea1a57ac09c8c0bd818709bd891db52e85f53fa
Expected behavior
api routes should work the same in dev as in prod and logs should.. log.
System information
Additional context
here i recorded a video bug report
https://youtu.be/bDmIGNFwu1k
The text was updated successfully, but these errors were encountered: