Overrides configurations in serverless.yml. disableScheduledEventsĭisables all scheduled events. Used to disable cookie-validation on hapi.js-server. Delimit multiple values with commas.ĭefault: 'WWW-Authenticate,Server-Authorization' disableCookieValidation Used as additional Access-Control-Exposed-Headers header value for responses. When provided, the default Access-Control-Allow-Credentials header value will be passed as 'false'. Used as default Access-Control-Allow-Origin header value for responses. Delimit multiple values with commas.ĭefault: 'accept,content-type,x-api-key' corsAllowOrigin Used as default Access-Control-Allow-Headers header value for responses. If you want to specify the apiKey value yourself, please define it under '' in the serverless config.ĭefines the API key value to be used for endpoints marked as private.ĭefaults to a random value. This option is deprecated and will be removed in the next major version. To list all the options for the plugin run: The console should display Offline as one of the plugins now available in your Serverless project. You can check whether you have successfully installed the plugin by running the serverless command line: It should look something like this: plugins: - serverless-offline Note that the "plugin" section for serverless-offline must be at root level on serverless.yml. If there is no plugin section you will need to add it to the file. Then inside your project's serverless.yml file add following entry to the plugins section: serverless-offline. Documentationįirst, add Serverless Offline to your project: In other words, if you find a bug or want a new feature, please help us by becoming one of the contributors ✌️ ! See the contributing section. This plugin is updated by its users, I just do maintenance and ensure that PRs are relevant to the community. And more: integrations, authorizers, proxies, timeouts, responseParameters, HTTPS, CORS, etc.Node.js, Python, Ruby, Go, Java (incl.To do so, it starts an HTTP server that handles the request's lifecycle like APIG does and invokes your handlers. This Serverless plugin emulates AWS λ and API Gateway on your local machine to speed up your development cycles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |