Skip to content

Commit

Permalink
Merge pull request vercel#13 from chec/edit/change-env-var-label
Browse files Browse the repository at this point in the history
  • Loading branch information
ScopeyNZ committed May 1, 2020
2 parents a967989 + 78bbc4e commit e9b5772
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
COMMERCEJS_PUBLIC_KEY=""
CHEC_PUBLIC_KEY=""
4 changes: 2 additions & 2 deletions lib/commerce.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Commerce from '@chec/commerce.js';

const commerceAPIKey = process.env.COMMERCEJS_PUBLIC_KEY;
export default new Commerce( commerceAPIKey );
const checAPIKey = process.env.CHEC_PUBLIC_KEY;
export default new Commerce( checAPIKey );
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = withSass({
return config
},
env: {
'COMMERCEJS_PUBLIC_KEY': process.env.COMMERCEJS_PUBLIC_KEY
'CHEC_PUBLIC_KEY': process.env.CHEC_PUBLIC_KEY
}
})

0 comments on commit e9b5772

Please sign in to comment.