Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
c4cd4f07
Commit
c4cd4f07
authored
Sep 06, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
parent
655c7e76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Project/Frontend/SignConnectPlus/.env
Project/Frontend/SignConnectPlus/.env
+2
-2
Project/Frontend/SignConnectPlus/src/utils/axios.ts
Project/Frontend/SignConnectPlus/src/utils/axios.ts
+3
-2
No files found.
Project/Frontend/SignConnectPlus/.env
View file @
c4cd4f07
...
...
@@ -3,8 +3,8 @@ GENERATE_SOURCEMAP = false
## Backend API URL
REACT_APP_API_URL_MOCK=https://mock-data-api-nextjs.vercel.app/
REACT_APP_API_URL=http://localhost:5000/
#
REACT_APP_API_URL=http://localhost:5000/
REACT_APP_API_URL=https://sign-connect-plus-node-backend-dd0e2ce81a87.herokuapp.com/
## Google Map Key
...
...
Project/Frontend/SignConnectPlus/src/utils/axios.ts
View file @
c4cd4f07
...
...
@@ -2,7 +2,8 @@ import axios from 'axios';
const
axiosServices_Mock
=
axios
.
create
({
baseURL
:
process
.
env
.
REACT_APP_API_URL_MOCK
||
'
http://localhost:3010/
'
});
const
axiosServices
=
axios
.
create
({
baseURL
:
process
.
env
.
REACT_APP_API_URL
||
'
http://localhost:5000/
'
});
// const axiosServices = axios.create({ baseURL: process.env.REACT_APP_API_URL || 'http://localhost:5000/' });
const
axiosServices
=
axios
.
create
({
baseURL
:
process
.
env
.
REACT_APP_API_URL
||
'
https://sign-connect-plus-node-backend-dd0e2ce81a87.herokuapp.com/
'
});
// ==============================|| AXIOS - FOR MOCK SERVICES ||============================== //
...
...
@@ -23,6 +24,6 @@ axiosServices.interceptors.response.use(
}
);
export
{
axiosServices
_Mock
,
axiosServices
};
export
{
axiosServices
,
axiosServices_Mock
};
export
default
axiosServices_Mock
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment