Skip to content

Commit 30821dd

Browse files
comxdalanpoulain
authored andcommitted
Reuse the API entrypoint from .env (#805)
* Reuse the API entrypoint from .env * Added a comment
1 parent 4e16a7e commit 30821dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/authentication-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import { HydraAdmin, hydraClient, fetchHydra as baseFetchHydra } from '@api-plat
6464
import authProvider from './authProvider';
6565
import { Route, Redirect } from 'react-router-dom';
6666

67-
const entrypoint = 'https://demo.api-platform.com'; // Change this by your own entrypoint
67+
const entrypoint = process.env.REACT_APP_API_ENTRYPOINT; // Change this by your own entrypoint if you're not using API Platform distribution
6868
const fetchHeaders = {'Authorization': `Bearer ${localStorage.getItem('token')}`};
6969
const fetchHydra = (url, options = {}) => baseFetchHydra(url, {
7070
...options,

0 commit comments

Comments
 (0)