Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working configuration for Lambda. #1140

Merged
merged 1 commit into from Apr 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/guides/aws-lambda.md
Expand Up @@ -12,12 +12,15 @@ const isBuild = process.env.NODE_ENV === 'production'
let pathConfig = {}

if (isBuild) {
// Lambda OS is UNIX, and tmpdir() is inside a symlink directory, we need the actual path,
// which is why we use realpathSync
const tmp = require('fs').realpathSync(os.tmpdir());
pathConfig = {
temp: os.tmpdir() + '/tmp',
dist: os.tmpdir() + '/dist',
devDist: os.tmpdir() + '/dev-server',
assets: os.tmpdir() + '/dist',
artifacts: os.tmpdir() + '/artifacts'
dist: tmp + '/dist',
temp: tmp + '/tmp',
buildArtifacts: tmp + '/artifacts',
devDist: tmp + '/dev-dist',
assets: tmp + '/dist'
}
}

Expand Down