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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,8 +71,8 @@ All CLI options are optional:
71
71
--stage -s The stage used to populate your templates. Default: the first stage found in your project.
72
72
--region -r The region used to populate your templates. Default: the first region for the first stage found.
73
73
--noTimeout -t Disables the timeout feature.
74
-
--noEnvironment Turns of loading of your environment variables from serverless.yml. Allows the usage of tools such as PM2 or docker-compose.
75
-
--dontPrintOutput Turns of logging of your lambda outputs in the terminal.
74
+
--noEnvironment Turns off loading of your environment variables from serverless.yml. Allows the usage of tools such as PM2 or docker-compose.
75
+
--dontPrintOutput Turns off logging of your lambda outputs in the terminal.
76
76
--httpsProtocol -H To enable HTTPS, specify directory (relative to your cwd, typically your project dir) for both cert.pem and key.pem files.
77
77
--skipCacheInvalidation -c Tells the plugin to skip require cache invalidation. A script reloading tool like Nodemon might then be needed.
78
78
--corsAllowOrigin Used as default Access-Control-Allow-Origin header value for responses. Delimit multiple values with commas. Default: '*'
@@ -97,8 +97,8 @@ By default you can send your requests to `http://localhost:3000/`. Please note t
97
97
- You'll need to restart the plugin if you modify your `serverless.yml` or any of the default velocity template files.
98
98
- The event object passed to your λs has one extra key: `{ isOffline: true }`. Also, `process.env.IS_OFFLINE` is `true`.
99
99
- When no Content-Type header is set on a request, API Gateway defaults to `application/json`, and so does the plugin.
100
-
But if you send a `application/x-www-form-urlencoded` or a `multipart/form-data` body with a `application/json` (or no) Content-Type, API Gateway won't parse your data (you'll get the ugly raw as input) whereas the plugin will answer 400 (malformed JSON).
101
-
Please consider explicitly setting your requests' Content-Type and using separates templates.
100
+
But if you send an `application/x-www-form-urlencoded` or a `multipart/form-data` body with an `application/json` (or no) Content-Type, API Gateway won't parse your data (you'll get the ugly raw as input), whereas the plugin will answer 400 (malformed JSON).
101
+
Please consider explicitly setting your requests' Content-Type and using separate templates.
102
102
103
103
## Usage with Babel
104
104
@@ -252,7 +252,7 @@ Serverless offline plugin will respond to the overall framework settings and out
252
252
253
253
Interactive debugging is also possible for your project if you have installed the node-inspector module and chrome browser. You can then run the following command line inside your project's root.
0 commit comments