Skip to content

Commit

Permalink
feat: use API_URL env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Oct 10, 2020
1 parent 322c12d commit d339093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ app.post('/', async (req, res) => {
},
};
await dynamoDb.put(params).promise();
res.status(200).send(`api.jsonld-checker.com/${id}`);
res.status(200).send(`${process.env.API_URL}/${id}`);
});

app.get('/*', (req, res) => {
Expand Down
1 change: 1 addition & 0 deletions packages/api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ inputs:
domain: api.jsonld-checker.com
env:
TABLE_NAME: ${output:jsonld-checker-db.name}
API_URL: ${output:jsonld-checker-api.url}

0 comments on commit d339093

Please sign in to comment.