Skip to content

Commit

Permalink
Use dotenv to manage BASE_URL state
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Dec 21, 2018
1 parent 82100c8 commit e1289af
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 92 deletions.
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
"presets": ["babel-preset-expo", "module:metro-react-native-babel-preset", "module:react-native-dotenv"]
}
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE_URL=https://192.168.11.110:57767
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE_URL=https://sardonyx.app
Loading

0 comments on commit e1289af

Please sign in to comment.