Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
add stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrown201 committed Feb 20, 2020
1 parent 5d49b24 commit 034d9c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion post.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,10 @@ exports.post = async function(event, context) {
statusCode: 200,
body: "success"
};
} catch (err) {}
} catch (err) {
return {
statusCode: 401,
body: "fail"
};
}
};
1 change: 1 addition & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ provider:
name: aws
runtime: nodejs12.x
profile: csn
stage: ${opt:stage, 'dev'}
environment:
NODE_ENV: "${file(./serverless.env.yml):NODE_ENV}"
SLACK_TOKEN: "${file(./serverless.env.yml):SLACK_TOKEN}"
Expand Down

0 comments on commit 034d9c6

Please sign in to comment.