Browse Source

🔧 netlify config files and added heroku back url

main
Francois Lannoy 6 years ago
parent
commit
2897571fbe
  1. 3
      .gitignore
  2. 21
      netlify.toml
  3. 2
      src/common/config.js

3
.gitignore

@ -22,3 +22,6 @@ yarn-error.log*
# Coverage Reports
coverage
# Local Netlify folder
.netlify

21
netlify.toml

@ -0,0 +1,21 @@
# example netlify.toml
[build]
command = "yarn run build"
functions = "functions"
publish = "."
## Uncomment to use this redirect for Single Page Applications like create-react-app.
## Not needed for static site generators.
#[[redirects]]
# from = "/*"
# to = "/index.html"
# status = 200
## (optional) Settings for Netlify Dev
## https://github.com/netlify/cli/blob/master/docs/netlify-dev.md#project-detection
#[dev]
# command = "yarn start" # Command to start your dev server
# port = 3000 # Port that the dev server will be listening on
# publish = "dist" # Folder with the static content for _redirect file
## more info on configuring this file: https://www.netlify.com/docs/netlify-toml-reference/

2
src/common/config.js

@ -1,5 +1,5 @@
export const API_URL =
process.env.NODE_ENV === "production"
? "https://tobedefined.io/api"
? "https://devops-final-back.herokuapp.com/api"
: "http://localhost:2020/api";
export default API_URL;
Loading…
Cancel
Save