env: move URL_GET_USER to env.local

This commit is contained in:
Chika 2022-07-16 15:12:21 +03:00
parent a0cc238508
commit 6d9a26a54d
2 changed files with 2 additions and 3 deletions

3
.env
View File

@ -2,5 +2,4 @@
USERS_SUPER=["akalinina","vchikalkin"]
####### URLS ########
URL_GET_USER=http://auth_service/auth/user
NEXT_PUBLIC_URL_CRM_GRAPHQL_PROXY=/api/crmgraphql
NEXT_PUBLIC_URL_CRM_GRAPHQL_PROXY=/api/crmgraphql

View File

@ -20,7 +20,7 @@ const users = {
};
export const handlers = [
rest.get('http://auth_service/auth/user', (req, res, ctx) => {
rest.get(process.env.URL_GET_USER, (req, res, ctx) => {
return res(ctx.json(users.akalinina));
}),
];