Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
fix(aws): require explicit aws environment variable flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nahtnam committed May 6, 2019
1 parent 41e1e62 commit 209ef49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/route.ts
Expand Up @@ -44,9 +44,7 @@ export default (route: Route): Handler => {
exec = route.plugins.reverse().reduce((acc, val): any => val(acc), exec);
}

const isAWS: boolean = !!(
(process.env.LAMBDA_TASK_ROOT && process.env.AWS_EXECUTION_ENV) || false
);
const isAWS: boolean = process.env.LIGHT_ENVIRONMENT === 'aws';
if (isAWS) {
return AWSServerlessMicro(handleErrors(exec));
}
Expand Down

0 comments on commit 209ef49

Please sign in to comment.