-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Documentation for target:serverless #20790
Comments
Check out #20487: #20487 (comment) |
@lachlanjc thanks for the pointer. I missed that thread. It looks like that issue has been closed but I don't see why there can't be better documentation about how the |
Closing based on my reply here: #20487 (comment)
Basically the serverless target only covers a small fraction of Next.js features and does not fully support the features introduced in the last year or so. Not because we didn't add support for them, they can work with the serverless target, but because a serverless function is only a code execution runtime, not a full application runtime that includes an enterprise-level CDN (that supports dynamic caching etc) |
@timneutkens thanks for the reply. Your points make sense. Though, I was hoping that information could be documented. It is fine if the Despite the downsides of the To sum up, there should be documentation for:
With this information developers can make the decision that works best for them. Also, it will allow developers to contribute to Next in a way that will support their use case. Finally, we really enjoy using Next so thanks for all of your work on this project. |
@timneutkens I wanted to follow up on this. Could we open this issue back up? Since the serverless target is still going to be supported (and is currently the recommended target), it makes sense to document how it works, how to use it, and what the drawbacks are. |
I have to agree that some documentation is better than none on this, even if it's not a great option. |
to see if it still works on netlify, at least it breaks sentry plugin, also some more stuff I didn't know: vercel/next.js#20790 (comment)
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. |
Describe the feature you'd like to request
I was not able to find any documentation for what is exported when a Next app is built using
target: serverless
. I also did not find documentation for the function signature of the render function that gets exported.Background: I'm using the
target: serverless
option and was trying to see how to deploy my pages using AWS Lambda. I was not able to find any documentation about how to wrap the functions that exported by Next.Describe the solution you'd like
I was able to use the following links to get the information I need, but it would be helpful if this was documented somewhere.
Describe alternatives you've considered
It looks like it was once documented in the ReadMe but I did not see it there: #6070 (comment)
The text was updated successfully, but these errors were encountered: