diff --git a/.gitignore b/.gitignore index e07ccd3..0e31d07 100644 --- a/.gitignore +++ b/.gitignore @@ -172,3 +172,17 @@ cython_debug/ # PyPI configuration file .pypirc app/.env + +# Node.js and React +node_modules/ +build/ +dist/ +.env.local +.env.development.local +.env.test.local +.env.production.local +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.eslintcache +.DS_Store diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js index a0ddc0b..a4a7292 100644 --- a/frontend/src/services/api.js +++ b/frontend/src/services/api.js @@ -3,7 +3,7 @@ * All endpoints return { result, error } (BaseResponse). */ -const BASE_URL = process.env.REACT_APP_API_URL || ''; +const BASE_URL = process.env.REACT_APP_API_URL || '/api'; async function request(method, path, body = null) { const options = {