Skip to content

Commit

Permalink
fix add environment variable (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvfsillva authored Oct 19, 2018
1 parent 1ae18b6 commit bb1336f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
poweredByHeader: false,
generateBuildId: async () => pkg.version,
publicRuntimeConfig: {
API_URL: 'https://dialetus-service.now.sh',
API_URL: process.env.API_URL,
}
}
5 changes: 4 additions & 1 deletion now.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"alias": "dialetus"
"alias": "dialetus",
"env": {
"API_URL": "https://dialetus-service.now.sh"
}
}

1 comment on commit bb1336f

@vercel
Copy link

@vercel vercel bot commented on bb1336f Oct 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://dialetus-qekpttzrkk.now.sh to the following alias.

Please sign in to comment.