-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathserverless-prod.yml
38 lines (35 loc) · 1.58 KB
/
serverless-prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
steedos_api_key: ${env.STEEDOS_SERVER_API_KEY}
steedos-website-prod:
component: "@sls-next/[email protected]" # it is recommended you pin the latest stable version of serverless-next.js
inputs:
# domain: ["www", "steedos.com"]
name:
defaultLambda: steedos-website-prod-DefaultLambda
apiLambda: steedos-website-prod-ApiLambda
imageLambda: steedos-website-prod-ImageLambda
stage: prod
deploy: true
bucketRegion: ap-east-1
bucketName: steedos-website-prod
region: ap-east-1
runtime: nodejs14.x
memory: 2048
timeout: 30
enableS3Acceleration: false
cloudfront:
# if you want to use an existing cloudfront distribution, provide it here
distributionId: E4K275YG40ODU #optional
aliases: ["steedos.cn", "www.steedos.cn", "steedos.com", "www.steedos.com"]
certificate:
cloudFrontDefaultCertificate: false # specify false and one of IAM/ACM certificates, or specify true and omit IAM/ACM inputs for default certificate
acmCertificateArn: "arn:aws:acm:us-east-1:382025409778:certificate/6cf0679c-1dd8-49ec-9d90-8eb5734190fb"
waitBeforeInvalidate: false # by default true, it waits for the CloudFront distribution to have completed before invalidating, to avoid possibly caching old page
build:
env:
NEXTAUTH_URL=https://www.steedos.cn
NEXT_PUBLIC_DEPLOYMENT_URL=https://www.steedos.cn
NEXT_PUBLIC_STEEDOS_ROOT_URL=https://console.steedos.cn
STEEDOS_SERVER_API_KEY=${steedos_api_key}
cleanupDotNext: true
postBuildCommands: []
useDotenv: false