-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Update Serverless Note in Docs #11861
Conversation
@@ -16,7 +16,7 @@ Your application will be built and deployed as a monolith. This is the default t | |||
|
|||
## `serverless` target | |||
|
|||
> Deployments to [ZEIT Now](https://zeit.co) will automatically enable this target. You do not need to opt-into it yourself, but you can. | |||
> Deployments to [ZEIT Now](https://zeit.co) will automatically enable this target. You should not opt-into it yourself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention if they want to debug something locally they should use the actual target we use, experimental-serverless-trace
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hesitant to add something with experimental
in the name. I'm pretty confident in its ability such that we don't need to explain how to troubleshoot in the docs, node-file-trace
is pretty battle tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, experimental-serverless-trace
should realistically never fail when run locally (in cases that server
would succeed). The actual tracing (which you'd need to troubleshoot) is an implementation detail of our builder.
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
|
This updates our documentation to discourage users from configuring
target: 'serverless'
in their projects if deploying to ZEIT Now.Setting this target can result in confusing local build errors, as ZEIT Now actually uses
experimental-serverless-trace
(forces it), which is more widely compatible w/ NPM packages thanserverless
.Closes #11860