Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Remove unused integrations from code
Browse files Browse the repository at this point in the history
Version 1.6.0 stable
  • Loading branch information
ebsaral committed Dec 25, 2021
1 parent 95c0261 commit fde4583
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-full-sls-app",
"description": "Serverless boilerplate CLI tool: GitLab and GitHub CI/CD, DataDog, Multi-Region, and many more setups. Ready-to-deploy in a few seconds!",
"version": "1.5.0",
"version": "1.6.0",
"main": "src/index.js",
"author": "Emin Bugra Saral <[email protected]> (https://saral.dev/)",
"funding": {
Expand Down
16 changes: 7 additions & 9 deletions templates/serverless-full-sls-app/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ app: <%= projectName %>
useDotenv: true

plugins:
<% if (!enableDataDog) { %>#<% } %>- serverless-plugin-datadog
- serverless-dotenv-plugin
<% if (enableDataDog) { %>- serverless-plugin-datadog
<% } %>- serverless-dotenv-plugin
- serverless-webpack
- serverless-domain-manager
- serverless-api-gateway-throttling
Expand Down Expand Up @@ -48,19 +48,19 @@ custom:
environments:
local: development
development: development
production: production
production: production<% if (enableDataDog) { %>
dd_enabled:
local: false
development: false
production: <% if (enableDataDog) { %>true<% } else { %>false<% } %>
production: true
datadogArn:
eu-central-1: <%= dataDogArnEuCentral %>
us-east-1: <%= dataDogArnUsEast %>
datadog:
enabled: ${self:custom.dd_enabled.${self:provider.stage}, false}
site: datadoghq.eu # TODO: Adjust this value if it's in US
subscribeToApiGatewayLogs: false
forwarder: ${self:custom.datadogArn.${opt:region, 'eu-central-1'}}
forwarder: ${self:custom.datadogArn.${opt:region, 'eu-central-1'}}<% } %>
domains:
local: localhost
development: <%= developmentUrl %>
Expand All @@ -69,13 +69,11 @@ custom:
domainName: ${self:custom.domains.${self:provider.stage}}
basePath: ""
stage: ${self:provider.stage}
createRoute53Record: true
<% if (enableMultiRegion) { %>
createRoute53Record: true<% if (enableMultiRegion) { %>
endpointType: "regional"
certificateRegion: ${opt:region, 'eu-central-1'}
route53Params:
routingPolicy: latency
<% } %>
routingPolicy: latency<% } %>
corsAllowedHeaders:
- Accept-Language
- Accept-Encoding
Expand Down
2 changes: 1 addition & 1 deletion templates/serverless-full-sls-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
filename: "[name].js",
},
target: "node",
externals: [nodeExternals(), "datadog-lambda-js", "dd-trace"],
externals: <% if (enableDataDog) { %>[nodeExternals(), "datadog-lambda-js", "dd-trace"]<% } else { %>[nodeExternals()]<% } %>,
module: {
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
Expand Down

0 comments on commit fde4583

Please sign in to comment.