Skip to content

Commit 6f89f1c

Browse files
committed
Merge remote-tracking branch 'node-ts-webpack-sapling/main'
2 parents 758b29f + 4af2521 commit 6f89f1c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ jobs:
2222
run: npm run build
2323
- name: Test
2424
run: npm run test -- --ci --maxWorkers=1 --reporters=default
25+
- name: Check Serverless
26+
run: npx serverless package --verbose --stage dev

serverless.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ provider:
1313
custom:
1414
stage: ${opt:stage, self:provider.stage}
1515
client:
16-
bucketName: ${self:service.name}-${self:custom.stage}
16+
bucketName: ${self:service}-${self:custom.stage}
1717
distributionFolder: dist
1818
indexDocument: index.html
1919
errorDocument: index.html
@@ -29,13 +29,14 @@ custom:
2929
value: no-cache
3030
domainName: ${self:custom.domainNameStage.${self:custom.stage}}
3131
domainNameStage:
32+
dev: dev.${self:custom.baseDomainName}
3233
test: test.${self:custom.baseDomainName}
3334
prod: www.${self:custom.baseDomainName}
3435
baseDomainName: ${custom.hostedZone}
3536
hostedZone: CHANGEME.com
3637
logs:
3738
bucket: CHANGEME
38-
path: websites/${self:service.name}/${self:custom.stage}/cloudfront
39+
path: websites/${self:service}/${self:custom.stage}/cloudfront
3940

4041
resources:
4142
Resources:
@@ -50,7 +51,7 @@ resources:
5051
Type: AWS::CloudFront::CloudFrontOriginAccessIdentity
5152
Properties:
5253
CloudFrontOriginAccessIdentityConfig:
53-
Comment: ${self:service.name}-${self:custom.stage}-oai
54+
Comment: ${self:service}-${self:custom.stage}-oai
5455

5556
WebAppS3BucketPolicy:
5657
Type: AWS::S3::BucketPolicy

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const HtmlWebpackPlugin = require('html-webpack-plugin');
22
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
33

4-
const WEBPACK_SERVER_PORT = process.env.WEBPACK_SERVER_PORT || 5000;
4+
const WEBPACK_SERVER_PORT = process.env.WEBPACK_SERVER_PORT || 5001;
55

66
const webpackConfig = (env, argv) => {
77
const { mode } = argv;

0 commit comments

Comments
 (0)