File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 22
22
run : npm run build
23
23
- name : Test
24
24
run : npm run test -- --ci --maxWorkers=1 --reporters=default
25
+ - name : Check Serverless
26
+ run : npx serverless package --verbose --stage dev
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ provider:
13
13
custom :
14
14
stage : ${opt:stage, self:provider.stage}
15
15
client :
16
- bucketName : ${self:service.name }-${self:custom.stage}
16
+ bucketName : ${self:service}-${self:custom.stage}
17
17
distributionFolder : dist
18
18
indexDocument : index.html
19
19
errorDocument : index.html
@@ -29,13 +29,14 @@ custom:
29
29
value : no-cache
30
30
domainName : ${self:custom.domainNameStage.${self:custom.stage}}
31
31
domainNameStage :
32
+ dev : dev.${self:custom.baseDomainName}
32
33
test : test.${self:custom.baseDomainName}
33
34
prod : www.${self:custom.baseDomainName}
34
35
baseDomainName : ${custom.hostedZone}
35
36
hostedZone : CHANGEME.com
36
37
logs :
37
38
bucket : CHANGEME
38
- path : websites/${self:service.name }/${self:custom.stage}/cloudfront
39
+ path : websites/${self:service}/${self:custom.stage}/cloudfront
39
40
40
41
resources :
41
42
Resources :
@@ -50,7 +51,7 @@ resources:
50
51
Type : AWS::CloudFront::CloudFrontOriginAccessIdentity
51
52
Properties :
52
53
CloudFrontOriginAccessIdentityConfig :
53
- Comment : ${self:service.name }-${self:custom.stage}-oai
54
+ Comment : ${self:service}-${self:custom.stage}-oai
54
55
55
56
WebAppS3BucketPolicy :
56
57
Type : AWS::S3::BucketPolicy
Original file line number Diff line number Diff line change 1
1
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
2
2
const { BundleAnalyzerPlugin } = require ( 'webpack-bundle-analyzer' ) ;
3
3
4
- const WEBPACK_SERVER_PORT = process . env . WEBPACK_SERVER_PORT || 5000 ;
4
+ const WEBPACK_SERVER_PORT = process . env . WEBPACK_SERVER_PORT || 5001 ;
5
5
6
6
const webpackConfig = ( env , argv ) => {
7
7
const { mode } = argv ;
You can’t perform that action at this time.
0 commit comments