Skip to content

Commit 08e7388

Browse files
comxdalanpoulain
authored andcommitted
Reuse the API entrypoint from .env (#795)
1 parent fe89814 commit 08e7388

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
@@ -11,7 +11,7 @@ The first step is to create a client to handle the authentication process:
1111
import { AUTH_LOGIN, AUTH_LOGOUT, AUTH_ERROR, AUTH_CHECK } from 'react-admin';
1212

1313
// Change this to be your own authentication token URI.
14-
const authenticationTokenUri = 'https://localhost:8443/authentication_token';
14+
const authenticationTokenUri = `${process.env.REACT_APP_API_ENTRYPOINT}/authentication_token`;
1515

1616
export default (type, params) => {
1717
switch (type) {

0 commit comments

Comments
 (0)