File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"scripts" : {
5
5
"dev" : " nodemon" ,
6
- "build" : " next build && tsc --project tsconfig.server.json" ,
6
+ "build" : " cross-env NODE_ENV=production next build && tsc --project tsconfig.server.json" ,
7
7
"start" : " cross-env NODE_ENV=production node ./dist/index.js" ,
8
8
"deploy" : " sls deploy"
9
9
},
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ async function startServer() {
42
42
await app . prepare ( ) ;
43
43
44
44
const server = Express ( ) ;
45
- app . setAssetPrefix ( process . env . STATIC_PATH ) ;
46
45
server . use ( Express . static ( join ( __dirname , '../public/static' ) ) ) ;
47
46
48
47
server . get ( '/' , async ( req , res ) => {
Original file line number Diff line number Diff line change @@ -10,9 +10,12 @@ inputs:
10
10
hook : npm run build
11
11
exclude :
12
12
- .env
13
+ - ' .next/cache/**'
13
14
region : ap-guangzhou
14
15
runtime : Nodejs10.15
15
16
functionName : serverless-cnode
17
+ functionConf :
18
+ timeout : 10
16
19
apigatewayConf :
17
20
protocols :
18
21
- http
You can’t perform that action at this time.
0 commit comments