forked from async-labs/saas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
two new env variables: PRODUCTION_URL_APP, PRODUCTION_URL_API
- Loading branch information
Showing
11 changed files
with
86 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import env from '../env'; | ||
|
||
export default function getRootUrl() { | ||
const port = process.env.PORT || 8000; | ||
const dev = process.env.NODE_ENV !== 'production'; | ||
const ROOT_URL = dev ? `http://localhost:${port}` : 'https://saas-api.async-await.com'; | ||
|
||
const { PRODUCTION_URL_API } = env; | ||
const ROOT_URL = dev ? `http://localhost:${port}` : PRODUCTION_URL_API; | ||
|
||
return ROOT_URL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -681,9 +681,9 @@ | |
lodash "^4.2.0" | ||
to-fast-properties "^2.0.0" | ||
|
||
"@material-ui/core@^1.2.1": | ||
version "1.2.1" | ||
resolved "https://registry.yarnpkg.com/@material-ui/core/-/core-1.2.1.tgz#f8c73da10b875762b37be7167ec2ac79b027499f" | ||
"@material-ui/core@^1.2.2": | ||
version "1.2.2" | ||
resolved "https://registry.yarnpkg.com/@material-ui/core/-/core-1.2.2.tgz#b074bdaa679d68af235b4d3f108f828ddcf6c1bc" | ||
dependencies: | ||
"@babel/runtime" "^7.0.0-beta.42" | ||
"@types/jss" "^9.5.3" | ||
|
@@ -707,9 +707,9 @@ | |
prop-types "^15.6.0" | ||
react-event-listener "^0.6.0" | ||
react-jss "^8.1.0" | ||
react-popper "^0.10.0" | ||
react-popper "^1.0.0" | ||
react-transition-group "^2.2.1" | ||
recompose "^0.26.0 || ^0.27.0" | ||
recompose "^0.27.0" | ||
scroll "^2.0.3" | ||
warning "^4.0.1" | ||
|
||
|
@@ -1275,7 +1275,7 @@ babel-register@^6.26.0: | |
mkdirp "^0.5.1" | ||
source-map-support "^0.4.15" | ||
|
||
babel-runtime@^6.22.0, babel-runtime@^6.26.0: | ||
babel-runtime@6.x.x, babel-runtime@^6.22.0, babel-runtime@^6.26.0: | ||
version "6.26.0" | ||
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" | ||
dependencies: | ||
|
@@ -1916,6 +1916,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: | |
safe-buffer "^5.0.1" | ||
sha.js "^2.4.8" | ||
|
||
create-react-context@^0.2.1: | ||
version "0.2.2" | ||
resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.2.2.tgz#9836542f9aaa22868cd7d4a6f82667df38019dca" | ||
dependencies: | ||
fbjs "^0.8.0" | ||
gud "^1.0.0" | ||
|
||
[email protected], cross-spawn@^5.0.1, cross-spawn@^5.1.0: | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" | ||
|
@@ -1960,7 +1967,11 @@ [email protected], "cssom@>= 0.3.2 < 0.4.0": | |
dependencies: | ||
cssom "0.3.x" | ||
|
||
csstype@^2.0.0, csstype@^2.2.0, csstype@^2.5.2: | ||
csstype@^2.0.0, csstype@^2.5.2: | ||
version "2.5.5" | ||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.5.tgz#4125484a3d42189a863943f23b9e4b80fedfa106" | ||
|
||
csstype@^2.2.0: | ||
version "2.5.3" | ||
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.3.tgz#2504152e6e1cc59b32098b7f5d6a63f16294c1f7" | ||
|
||
|
@@ -2753,7 +2764,7 @@ fb-watchman@^2.0.0: | |
dependencies: | ||
bser "^2.0.0" | ||
|
||
fbjs@^0.8.1, fbjs@^0.8.16: | ||
fbjs@^0.8.0, fbjs@^0.8.1, fbjs@^0.8.16: | ||
version "0.8.17" | ||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" | ||
dependencies: | ||
|
@@ -3090,6 +3101,10 @@ growly@^1.3.0: | |
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" | ||
|
||
gud@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/gud/-/gud-1.0.0.tgz#a489581b17e6a70beca9abe3ae57de7a499852c0" | ||
|
||
handlebars@^4.0.3: | ||
version "4.0.11" | ||
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" | ||
|
@@ -3231,7 +3246,11 @@ [email protected]: | |
version "2.5.0" | ||
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40" | ||
|
||
hoist-non-react-statics@^2.3.1, hoist-non-react-statics@^2.5.0: | ||
hoist-non-react-statics@^2.3.1: | ||
version "2.5.5" | ||
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47" | ||
|
||
hoist-non-react-statics@^2.5.0: | ||
version "2.5.4" | ||
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.4.tgz#fc3b1ac05d2ae3abedec84eba846511b0d4fcc4f" | ||
|
||
|
@@ -4221,7 +4240,15 @@ jss-vendor-prefixer@^7.0.0: | |
dependencies: | ||
css-vendor "^0.3.8" | ||
|
||
jss@^9.3.3, jss@^9.7.0: | ||
jss@^9.3.3: | ||
version "9.8.5" | ||
resolved "https://registry.yarnpkg.com/jss/-/jss-9.8.5.tgz#9ab86737e126de68180aba956a504421ba84bed4" | ||
dependencies: | ||
is-in-browser "^1.1.3" | ||
symbol-observable "^1.1.0" | ||
warning "^3.0.0" | ||
|
||
jss@^9.7.0: | ||
version "9.8.3" | ||
resolved "https://registry.yarnpkg.com/jss/-/jss-9.8.3.tgz#399da571c4b2c8f4cf418ca7e8627e44fc287fc8" | ||
dependencies: | ||
|
@@ -5461,12 +5488,16 @@ react-lifecycles-compat@^3.0.2: | |
version "3.0.4" | ||
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" | ||
|
||
react-popper@^0.10.0: | ||
version "0.10.4" | ||
resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-0.10.4.tgz#af2a415ea22291edd504678d7afda8a6ee3295aa" | ||
react-popper@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-1.0.0.tgz#b99452144e8fe4acc77fa3d959a8c79e07a65084" | ||
dependencies: | ||
babel-runtime "6.x.x" | ||
create-react-context "^0.2.1" | ||
popper.js "^1.14.1" | ||
prop-types "^15.6.1" | ||
typed-styles "^0.0.5" | ||
warning "^3.0.0" | ||
|
||
react-stripe-checkout@^2.6.3: | ||
version "2.6.3" | ||
|
@@ -5546,7 +5577,7 @@ realpath-native@^1.0.0: | |
dependencies: | ||
util.promisify "^1.0.0" | ||
|
||
"recompose@^0.26.0 || ^0.27.0": | ||
recompose@^0.27.0: | ||
version "0.27.1" | ||
resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.27.1.tgz#1a49e931f183634516633bbb4f4edbfd3f38a7ba" | ||
dependencies: | ||
|
@@ -6547,6 +6578,10 @@ type-is@~1.6.15, type-is@~1.6.16: | |
media-typer "0.3.0" | ||
mime-types "~2.1.18" | ||
|
||
typed-styles@^0.0.5: | ||
version "0.0.5" | ||
resolved "https://registry.yarnpkg.com/typed-styles/-/typed-styles-0.0.5.tgz#a60df245d482a9b1adf9c06c078d0f06085ed1cf" | ||
|
||
typedarray@^0.0.6: | ||
version "0.0.6" | ||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" | ||
|