@@ -43,7 +43,7 @@ const ExportToYandex: FC<ExportToYandexProps> = (props: ExportToYandexProps) =>
4343
4444    const  setUserYandexToken  =  async  ( userConfirmationCode : string ,  userId : string )  : Promise < string >  =>  { 
4545        const  fetchBody  =  `grant_type=authorization_code&code=${ userConfirmationCode }   + 
46-         `&client_id=${ process . env . REACT_APP_YANDEX_CLIENT_ID } ${ process . env . REACT_APP_YANDEX_CLIENT_SECRET }  ; 
46+         `&client_id=${ import . meta . env . VITE_YANDEX_CLIENT_ID } ${ import . meta . env . VITE_YANDEX_CLIENT_SECRET }  ; 
4747
4848        const  response  =  await  fetch ( `https://oauth.yandex.ru/token` ,  { 
4949            method : "post" , 
@@ -88,7 +88,7 @@ const ExportToYandex: FC<ExportToYandexProps> = (props: ExportToYandexProps) =>
8888            { 
8989                method : "get" , 
9090                headers : { 
91-                     'Authorization' : `${ process . env . REACT_APP_YANDEX_AUTHORIZATION_TOKEN }  , 
91+                     'Authorization' : `${ import . meta . env . VITE_YANDEX_AUTHORIZATION_TOKEN }  , 
9292                } } ) 
9393            . then (  async  ( response )  =>  { 
9494                if  ( response . status  >=  200  &&  response . status  <  300 )  { 
@@ -116,7 +116,7 @@ const ExportToYandex: FC<ExportToYandexProps> = (props: ExportToYandexProps) =>
116116            } ) 
117117    } 
118118
119-     const  yacRequestLink  =  `https://oauth.yandex.ru/authorize?response_type=code&client_id=${ process . env . REACT_APP_YANDEX_CLIENT_ID }  
119+     const  yacRequestLink  =  `https://oauth.yandex.ru/authorize?response_type=code&client_id=${ import . meta . env . VITE_YANDEX_CLIENT_ID }  
120120
121121    const  buttonSx  =  { 
122122        ...( loadingStatus  ===  LoadingStatus . Success  &&  { 
@@ -161,7 +161,7 @@ const ExportToYandex: FC<ExportToYandexProps> = (props: ExportToYandexProps) =>
161161                < Grid  item > 
162162                    < Alert  severity = "success"  variant = { "standard" } > 
163163                        Авторизация успешно пройдена. Файл будет загружен на диск по адресу
164-                         "Приложения/{ process . env . REACT_APP_YANDEX_APPLICATION_NAME } /{ fileName } .xlsx"
164+                         "Приложения/{ import . meta . env . VITE_YANDEX_APPLICATION_NAME } /{ fileName } .xlsx"
165165                    </ Alert > 
166166                </ Grid > 
167167                < Grid  container  item  spacing = { 1 }  alignItems = { "center" } > 
0 commit comments