You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: replace projectName with serviceName for consistency
The term "project" is being used a lot in the Twilio CLI and causes a lot of confusion
BREAKING CHANGE: projectName is no longer valid and serviceName has to be used instead
fix#17
@@ -52,12 +52,12 @@ const result = await client.deployLocalProject({
52
52
envPath:'...',
53
53
accountSid:'...',
54
54
authToken:'...',
55
-
env: {},
55
+
env: {},
56
56
pkgJson: {},
57
-
projectName:'serverless-example',
57
+
serviceName:'serverless-example',
58
58
functionsEnv:'dev',
59
59
assetsFolderName:'static',
60
-
functionsFolderName:'src'
60
+
functionsFolderName:'src',
61
61
});
62
62
```
63
63
@@ -87,9 +87,9 @@ Nested folder structures will result in nested routes.
87
87
88
88
Deploys a set of functions, assets, variables and dependencies specified in deployConfig. Functions & assets can either be paths to the local filesystem or Buffer instances allowing you to dynamically upload even without a file system.
89
89
90
-
Unless a deployConfig. serviceSid is specified, it will try to create one. If a service with the name deployConfig.projectName already exists, it will throw an error. You can make it use the existing service by setting overrideExistingService to true.
90
+
Unless a deployConfig. serviceSid is specified, it will try to create one. If a service with the name deployConfig.serviceName already exists, it will throw an error. You can make it use the existing service by setting overrideExistingService to true.
91
91
92
-
Updates to the deployment will be emitted as events to status-update.
92
+
Updates to the deployment will be emitted as events to status-update.
93
93
94
94
[More in the Docs](https://serverless-api.twilio-labs.com/classes/_twilio_labs_serverless_api.twilioserverlessapiclient.html#deployproject)
95
95
@@ -119,7 +119,7 @@ const api = require('@twilio-labs/serverless-api/dist/api');
0 commit comments