We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8539fb9 commit 742c30fCopy full SHA for 742c30f
nuxt.config.js
@@ -2,8 +2,8 @@ require('dotenv').config();
2
3
const isProd = process.env.NODE_ENV === 'production';
4
const STATIC_URL = isProd
5
- ? `https://${process.env.CDN_DOMAIN}/`
6
- : `http://localhost:${parseInt(process.env.PORT, 10) || 8000}/`
+ ? `https://${process.env.CDN_DOMAIN}`
+ : `http://localhost:${parseInt(process.env.PORT, 10) || 8000}`
7
8
module.exports = {
9
head: {
serverless.yml
@@ -14,6 +14,9 @@ inputs:
14
- "docs/**"
15
- ".next/cache/**"
16
- "node_modules/**"
17
+ # must config this, because exclude will ignore all node_modules prefix path
18
+ include:
19
+ - .nuxt/dist/client/node_modules
20
region: ${env:REGION}
21
runtime: Nodejs12.16
22
functionName: serverless-cnode-nuxtjs
0 commit comments