dev@locazia: edit env api endpoint

This commit is contained in:
user 2024-02-23 16:26:40 +03:00
parent 2552bd842d
commit e052f2232f
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ function App() {
useEffect(() => {
if (window.Telegram && window.Telegram.WebApp) {
console.log(`Requesting API token from ${apiEndpoint}/auth.twa`);
fetch(`${apiEndpoint}/auth.twa`, {
method: 'POST',
headers: {

View File

@ -1,5 +1,5 @@
const apiEndpoint: string = process.env.APP_API_ENDPOINT || 'http://192.168.0.170:13807/api/v1';
const apiEndpoint: string = process.env.REACT_APP_API_ENDPOINT || 'http://192.168.0.170:13807/api/v1';
export {
apiEndpoint